/* ===== Shared styles for legal/informational pages =====
   Kept visually consistent with the main site (../index.html):
   same color tokens, font, animated background, nav and footer look. */

:root {
    --primary: #0066FF;
    --primary-dark: #0052CC;
    --green: #A8E6CF;
    --green-dark: #6BCF9F;
    --dark: #0A1128;
    --gray: #6B7280;
    --light-gray: #F3F4F6;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 85%;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--white);
    color: var(--dark);
    overflow-x: hidden;
    line-height: 1.6;
}

/* ===== ANIMATED BACKGROUND ===== */
.animated-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background: linear-gradient(135deg, #ffffff 0%, #f0f9ff 50%, #f0fdf4 100%);
    overflow: hidden;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.2;
    animation: float 25s ease-in-out infinite;
}

.blob-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--primary), #4A90E2);
    top: 5%;
    left: 0%;
}

.blob-2 {
    width: 500px;
    height: 500px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    bottom: 5%;
    right: 5%;
    animation-delay: -8s;
}

.blob-3 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, var(--primary), var(--green));
    top: 40%;
    right: 20%;
    animation-delay: -16s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    25% {
        transform: translate(50px, -50px) scale(1.05);
    }

    50% {
        transform: translate(-30px, 30px) scale(0.95);
    }

    75% {
        transform: translate(40px, 40px) scale(1.02);
    }
}

/* ===== NAVIGATION ===== */
nav#navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 1rem 5%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

nav#navbar.scrolled {
    padding: 0.8rem 5%;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    gap: 1.5rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo img {
    height: 40px;
    width: auto;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.nav-home-link {
    color: var(--dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-home-link:hover {
    color: var(--primary);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    background: var(--light-gray);
    border-radius: 999px;
    padding: 0.25rem;
    gap: 0.15rem;
}

.lang-btn {
    border: none;
    background: transparent;
    color: var(--gray);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.lang-btn:hover {
    color: var(--primary);
}

.lang-btn.active {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    box-shadow: 0 4px 12px rgba(0, 102, 255, 0.3);
}

/* ===== LANGUAGE VISIBILITY ===== */
html[data-lang="tr"] .lang-en {
    display: none;
}

html[data-lang="en"] .lang-tr {
    display: none;
}

/* ===== PAGE / SECTIONS BASE ===== */
main {
    position: relative;
    z-index: 1;
}

.container {
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
}

.legal-hero {
    padding: 11rem 5% 3rem;
    text-align: center;
}

.legal-hero-inner {
    max-width: 900px;
    margin: 0 auto;
}

.section-badge {
    display: inline-block;
    padding: 0.6rem 1.8rem;
    background: linear-gradient(135deg, var(--primary), var(--green));
    color: var(--white);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
}

.legal-title {
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    font-weight: 900;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.legal-updated {
    color: var(--gray);
    font-size: 0.95rem;
}

/* ===== LEGAL CONTENT ===== */
.legal-content {
    padding: 1rem 5% 6rem;
}

.legal-card {
    max-width: 900px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 3rem 3rem 2.5rem;
    border-radius: 24px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.legal-section {
    margin-bottom: 2.25rem;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section h2 {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 0.9rem;
    letter-spacing: -0.01em;
}

.legal-section h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--dark);
    margin: 1rem 0 0.6rem;
}

.legal-section p {
    color: var(--gray);
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul {
    margin: 0 0 1rem 1.3rem;
    color: var(--gray);
}

.legal-section ul li {
    font-size: 0.98rem;
    line-height: 1.85;
    margin-bottom: 0.5rem;
}

.legal-divider {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin: 2.5rem 0;
}

.legal-back {
    max-width: 900px;
    margin: 2.5rem auto 0;
    text-align: center;
}

.btn {
    padding: 0.9rem 2.2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    border: none;
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
    transform: translateY(-3px);
}

/* ===== FOOTER ===== */
footer {
    position: relative;
    z-index: 1;
    padding: 3rem 5% 2rem;
    background: var(--dark);
    color: var(--white);
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
}

.footer-bottom {
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
}

.footer-legal-links {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s;
}

.footer-legal-links a:hover {
    color: var(--green);
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    text-decoration: none;
    transition: all 0.3s;
    font-size: 1.2rem;
}

.social-links a:hover {
    background: var(--primary);
    transform: translateY(-3px);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .legal-hero {
        padding: 9rem 5% 2rem;
    }

    .legal-card {
        padding: 2rem 1.5rem 1.75rem;
        border-radius: 20px;
    }

    .nav-actions {
        gap: 0.75rem;
    }

    .nav-home-link {
        font-size: 0.85rem;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-wrap: wrap;
        row-gap: 0.75rem;
    }

    .nav-home-link {
        font-size: 0.8rem;
    }

    .lang-btn {
        padding: 0.35rem 0.7rem;
        font-size: 0.75rem;
    }
}
