:root {
    --navy-950: #07111f;
    --navy-900: #0f172a;
    --blue: #2563eb;
    --blue-light: #93c5fd;
    --white: #ffffff;
    --gray-50: #f8fafc;
    --gray-200: #e2e8f0;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --heading: "Sora", sans-serif;
    --body: "Inter", sans-serif;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
}

body {
    margin: 0;
    color: var(--navy-900);
    background: var(--white);
    font-family: var(--body);
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
    cursor: pointer;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.legal-header {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10;
    width: 100%;
}

.header-content {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
}

.legal-logo img {
    width: 250px;
    max-height: 82px;
    object-fit: contain;
    object-position: left center;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 13px;
}

.language-button {
    width: 44px;
    height: 44px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    font-weight: 700;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 11px 17px;
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.17);
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.legal-hero {
    position: relative;
    padding: 180px 0 100px;
    color: var(--white);
    background: var(--navy-950);
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.055) 1px, transparent 1px);
    background-size: 70px 70px;
}

.hero-glow {
    position: absolute;
    top: -200px;
    right: -100px;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.32), transparent 68%);
}

.legal-hero-content {
    position: relative;
    z-index: 2;
}

.legal-label {
    display: inline-block;
    margin-bottom: 16px;
    color: var(--blue-light);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.legal-hero h1 {
    max-width: 850px;
    margin: 0;
    font-family: var(--heading);
    font-size: clamp(2.8rem, 7vw, 5.7rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.legal-hero p {
    max-width: 720px;
    margin: 25px 0 0;
    color: #cbd5e1;
    font-size: 1.05rem;
}

.update-date {
    display: flex;
    gap: 10px;
    margin-top: 30px;
    color: var(--gray-400);
    font-size: 0.8rem;
}

.update-date strong {
    color: var(--white);
}

.legal-section {
    padding: 95px 0 120px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 270px minmax(0, 1fr);
    gap: 80px;
    align-items: start;
}

.legal-navigation {
    position: sticky;
    top: 40px;
    padding: 25px;
    background: var(--gray-50);
    border: 1px solid var(--gray-200);
    border-radius: 18px;
}

.legal-navigation > strong {
    display: block;
    margin-bottom: 16px;
    font-family: var(--heading);
    font-size: 0.85rem;
}

.legal-navigation nav {
    display: grid;
    gap: 4px;
}

.legal-navigation a {
    padding: 8px 0;
    color: var(--gray-500);
    font-size: 0.78rem;
}

.legal-navigation a:hover {
    color: var(--blue);
}

.legal-content {
    max-width: 790px;
}

.legal-content section {
    padding-bottom: 44px;
    margin-bottom: 44px;
    border-bottom: 1px solid var(--gray-200);
}

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

.legal-content h2 {
    margin: 0 0 20px;
    font-family: var(--heading);
    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.25;
    letter-spacing: -0.035em;
}

.legal-content p {
    margin: 0 0 18px;
    color: var(--gray-700);
}

.legal-content ul {
    display: grid;
    gap: 11px;
    padding-left: 22px;
    color: var(--gray-700);
}

.legal-content li {
    padding-left: 7px;
}

.legal-notice,
.contact-box {
    margin-top: 25px;
    padding: 22px;
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    border-radius: 15px;
}

.legal-notice strong,
.legal-notice p,
.contact-box strong,
.contact-box span,
.contact-box a {
    display: block;
}

.legal-notice p {
    margin: 7px 0 0;
}

.contact-box {
    display: grid;
    gap: 5px;
}

.contact-box a {
    margin-top: 7px;
    color: var(--blue);
    font-weight: 700;
}

.legal-footer {
    color: var(--gray-400);
    background: var(--navy-950);
}

.footer-content {
    min-height: 85px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 25px;
    font-size: 0.78rem;
}

.footer-content p {
    margin: 0;
}

.footer-content > div {
    display: flex;
    gap: 22px;
}

.footer-content a:hover {
    color: var(--white);
}

@media (max-width: 850px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .legal-navigation {
        position: static;
    }
}

@media (max-width: 600px) {
    .container {
        width: min(var(--container), calc(100% - 28px));
    }

    .legal-logo img {
        width: 170px;
    }

    .back-link span:last-child {
        display: none;
    }

    .legal-hero {
        padding: 145px 0 75px;
    }

    .legal-section {
        padding: 70px 0;
    }

    .footer-content {
        padding: 24px 0;
        align-items: flex-start;
        flex-direction: column;
    }
}