/* STRCTR legal pages — shared system aesthetic */

:root {
    --bg: #0B0B0C;
    --text: #E5E7EB;
    --muted: #8A9099;
    --body-dim: #b4bac4;
    --line: rgba(31, 41, 55, 0.55);
    --line-soft: rgba(255, 255, 255, 0.06);
    --accent: #3B82F6;
    --legal-max: 760px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.legal-page {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    background:
        radial-gradient(circle at 82% 4%, rgba(59, 130, 246, 0.08), transparent 24%),
        radial-gradient(circle at 8% 12%, rgba(59, 130, 246, 0.035), transparent 28%),
        linear-gradient(180deg, #0F0F10 0%, #0B0B0C 45%, #09090a 100%);
    overflow-x: hidden;
}

body.legal-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.18;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.016) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.016) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.28), transparent 80%);
    z-index: 0;
}

body.legal-page::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background: radial-gradient(ellipse 110% 48% at 50% -6%, rgba(88, 132, 220, 0.14), transparent 58%);
    opacity: 0.22;
}

.legal-back {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: clamp(20px, 4vw, 36px) auto 0;
    padding: 0 clamp(20px, 5vw, 40px);
    width: 100%;
    max-width: calc(var(--legal-max) + 80px);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    color: var(--text);
    text-decoration: none;
    opacity: 0.56;
    transition: opacity 0.2s ease;
}

.legal-back:hover {
    opacity: 0.9;
}

.legal-main {
    position: relative;
    z-index: 1;
    flex: 1;
    width: 100%;
    max-width: var(--legal-max);
    margin: 0 auto;
    padding: clamp(28px, 5vw, 56px) clamp(20px, 5vw, 40px) clamp(48px, 8vw, 96px);
}

.legal-doc h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 4vw, 1.85rem);
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    line-height: 1.25;
    color: var(--text);
}

.legal-updated {
    margin: 0 0 clamp(30px, 4.2vw, 44px);
    font-size: 0.8125rem;
    letter-spacing: 0.06em;
    line-height: 1.5;
    color: rgba(138, 144, 153, 0.88);
}

.legal-lead {
    margin: 0 0 clamp(36px, 5vw, 52px);
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--body-dim);
}

.legal-section {
    margin: 0;
    padding: clamp(22px, 3vw, 32px) 0;
    border-top: 1px solid var(--line-soft);
}

.legal-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.legal-section h2 {
    margin: 0 0 14px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text);
}

.legal-section p {
    margin: 0 0 14px;
    color: var(--body-dim);
    line-height: 1.75;
}

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

.legal-section ul {
    margin: 0 0 0;
    padding: 0 0 0 1.15em;
    color: var(--body-dim);
    line-height: 1.75;
}

.legal-section li {
    margin-bottom: 8px;
}

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

.legal-doc a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid rgba(59, 130, 246, 0.35);
    transition: color 0.2s ease, border-color 0.2s ease, text-shadow 0.2s ease;
}

.legal-doc a:hover {
    color: #5b9ded;
    border-bottom-color: rgba(59, 130, 246, 0.42);
    text-shadow: 0 0 10px rgba(59, 130, 246, 0.08);
}

.legal-contact a {
    color: rgb(122, 162, 255);
    text-decoration: none;
    border-bottom: 1px solid rgba(122, 162, 255, 0.3);
    text-shadow: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-contact a:hover {
    color: rgb(138, 178, 255);
    border-bottom: 1px solid rgba(122, 162, 255, 0.6);
    text-shadow: none;
}

.legal-contact {
    margin-top: clamp(40px, 6vw, 56px);
    padding-top: clamp(24px, 4vw, 36px);
    border-top: 1px solid var(--line-soft);
    font-size: 0.95rem;
    color: var(--body-dim);
    line-height: 1.75;
}

.legal-site-footer {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding: 24px clamp(20px, 5vw, 40px) 32px;
    text-align: center;
    font-size: 12px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

@media (max-width: 480px) {
    body.legal-page {
        font-size: 15px;
    }

    .legal-back {
        margin-top: clamp(28px, 8vw, 44px);
    }

    .legal-main {
        padding-top: clamp(18px, 4vw, 28px);
        padding-bottom: clamp(36px, 7vw, 72px);
    }

    .legal-doc h1 {
        letter-spacing: 0.1em;
    }

    .legal-updated {
        margin-bottom: clamp(22px, 4.5vw, 32px);
    }

    .legal-section {
        padding: clamp(14px, 3.5vw, 20px) 0;
    }

    .legal-contact {
        margin-top: clamp(26px, 5vw, 44px);
        padding-top: clamp(18px, 3.5vw, 28px);
    }
}
