:root {
    --ink: #211330;
    --ink-soft: #665873;
    --purple: #6d28d9;
    --purple-dark: #351046;
    --pink: #ec4899;
    --surface: rgba(255, 255, 255, .92);
    --surface-soft: #faf7ff;
    --line: rgba(64, 20, 95, .13);
    --shadow: 0 24px 80px rgba(48, 19, 73, .12);
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    min-width: 320px;
    color: var(--ink);
    background:
        radial-gradient(circle at 8% 0%, rgba(155, 92, 255, .18), transparent 29rem),
        radial-gradient(circle at 94% 18%, rgba(244, 114, 182, .14), transparent 30rem),
        #f8f5fc;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.legal-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.legal-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    min-height: 98px;
}

.legal-brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--ink);
    text-decoration: none;
}

.legal-brand img {
    width: 52px;
    height: 52px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 15px;
    background: white;
    box-shadow: 0 12px 30px rgba(48, 19, 73, .1);
}

.legal-brand strong,
.legal-brand span { display: block; }

.legal-brand strong { letter-spacing: -.04em; }
.legal-brand span { margin-top: 3px; color: var(--ink-soft); font-size: .78rem; }

.legal-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.legal-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 17px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    background: rgba(255, 255, 255, .74);
    font-size: .8rem;
    font-weight: 800;
    text-decoration: none;
}

.legal-button.primary {
    border-color: transparent;
    color: white;
    background: linear-gradient(120deg, var(--purple), var(--pink));
    box-shadow: 0 12px 28px rgba(109, 40, 217, .22);
}

.legal-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(40px, 7vw, 74px);
    border-radius: 38px;
    color: white;
    background:
        radial-gradient(circle at 86% 20%, rgba(244, 114, 182, .5), transparent 19rem),
        linear-gradient(135deg, #2c0d42 0%, #6521bb 55%, #9b5cff 100%);
    box-shadow: var(--shadow);
}

.legal-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -160px;
    width: 360px;
    height: 360px;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(255, 255, 255, .04), 0 0 0 92px rgba(255, 255, 255, .03);
}

.legal-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .09);
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-hero h1 {
    position: relative;
    z-index: 1;
    max-width: 760px;
    margin: 20px 0 16px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: .92;
    letter-spacing: -.075em;
}

.legal-hero > p {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
    font-size: clamp(1rem, 2vw, 1.13rem);
    line-height: 1.75;
}

.legal-dates {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

.legal-dates span {
    padding: 9px 12px;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 12px;
    background: rgba(18, 6, 28, .22);
    color: rgba(255, 255, 255, .82);
    font-size: .72rem;
    font-weight: 750;
}

.legal-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin: 30px 0 70px;
}

.legal-nav {
    position: sticky;
    top: 22px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 25px;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 16px 48px rgba(48, 19, 73, .08);
    backdrop-filter: blur(18px);
}

.legal-nav strong {
    display: block;
    margin-bottom: 12px;
    color: var(--purple);
    font-size: .68rem;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.legal-nav a {
    display: block;
    padding: 8px 0;
    color: var(--ink-soft);
    font-size: .78rem;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
}

.legal-nav a:hover,
.legal-nav a:focus-visible { color: var(--purple); }

.legal-content {
    display: grid;
    gap: 18px;
}

.legal-summary,
.legal-section,
.legal-contact {
    border: 1px solid var(--line);
    border-radius: 28px;
    background: var(--surface);
    box-shadow: 0 15px 48px rgba(48, 19, 73, .055);
}

.legal-summary {
    padding: clamp(25px, 5vw, 38px);
    background: linear-gradient(135deg, rgba(238, 229, 255, .94), rgba(255, 239, 248, .9));
}

.legal-summary h2,
.legal-section h2,
.legal-contact h2 {
    margin: 0;
    font-size: clamp(1.55rem, 3.2vw, 2.2rem);
    letter-spacing: -.045em;
}

.legal-summary p,
.legal-section p,
.legal-section li,
.legal-contact p {
    color: var(--ink-soft);
    font-size: .95rem;
    line-height: 1.78;
}

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

.legal-section { padding: clamp(25px, 5vw, 40px); }

.section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    min-height: 28px;
    margin-bottom: 13px;
    padding: 0 9px;
    border-radius: 9px;
    color: var(--purple);
    background: #f1eaff;
    font-size: .68rem;
    font-weight: 900;
    letter-spacing: .08em;
}

.legal-section h3 {
    margin: 25px 0 8px;
    font-size: 1rem;
    letter-spacing: -.02em;
}

.legal-section ul,
.legal-section ol {
    display: grid;
    gap: 9px;
    margin: 14px 0;
    padding-left: 21px;
}

.legal-section li::marker { color: var(--purple); font-weight: 800; }

.legal-callout {
    margin: 20px 0 0;
    padding: 18px 20px;
    border: 1px solid rgba(109, 40, 217, .16);
    border-radius: 18px;
    color: #4b2862;
    background: var(--surface-soft);
    font-size: .9rem;
    line-height: 1.7;
}

.legal-callout strong { color: var(--purple-dark); }

.legal-section a,
.legal-contact a {
    color: var(--purple);
    font-weight: 800;
    text-underline-offset: 3px;
}

.legal-contact {
    padding: clamp(28px, 5vw, 42px);
    color: white;
    background: linear-gradient(135deg, #2b103d, #4d1b62);
}

.legal-contact p { color: rgba(255, 255, 255, .72); }
.legal-contact a { color: white; }

.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 22px;
}

.legal-contact-grid div {
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 17px;
    background: rgba(255, 255, 255, .06);
}

.legal-contact-grid span,
.legal-contact-grid strong { display: block; }
.legal-contact-grid span { margin-bottom: 5px; color: rgba(255, 255, 255, .5); font-size: .66rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.legal-contact-grid strong { font-size: .87rem; line-height: 1.5; }

.legal-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 0 0 42px;
    color: #786a84;
    font-size: .76rem;
}

.legal-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.legal-footer a { font-weight: 800; text-decoration: none; }
.legal-footer a:hover,
.legal-footer a:focus-visible { color: var(--purple); }

@media (max-width: 820px) {
    .legal-layout { grid-template-columns: 1fr; }
    .legal-nav { position: static; columns: 2; }
    .legal-nav strong { column-span: all; }
}

@media (max-width: 600px) {
    .legal-shell { width: min(100% - 24px, 1180px); }
    .legal-topbar { min-height: 84px; }
    .legal-brand img { width: 45px; height: 45px; }
    .legal-top-actions .legal-button:not(.primary) { display: none; }
    .legal-button { min-height: 40px; padding: 0 13px; }
    .legal-hero { padding: 35px 24px; border-radius: 27px; }
    .legal-hero h1 { font-size: clamp(2.7rem, 15vw, 4.2rem); }
    .legal-layout { margin-top: 18px; }
    .legal-nav { columns: 1; }
    .legal-contact-grid { grid-template-columns: 1fr; }
    .legal-footer { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
