:root {
    --bg: #0a0a0a;
    --surface: #121212;
    --surface-2: #171717;
    --border: rgba(255,255,255,0.08);
    --border-strong: rgba(201,169,110,0.24);
    --text: #f2f2f2;
    --muted: #a6a6a6;
    --soft: #7f7f7f;
    --gold: #d4b87a;
    --gold-deep: #af8b4f;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
    line-height: 1.6;
}

a {
    color: inherit;
}

.legal-topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(12,12,12,0.94);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-topbar-inner {
    max-width: 1180px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.legal-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    min-width: 0;
}

.legal-brand img {
    height: 42px;
    width: auto;
    display: block;
}

.legal-brand-text {
    color: var(--gold);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2.8px;
    text-transform: uppercase;
    white-space: nowrap;
}

.legal-top-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.legal-top-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.legal-top-links a:hover,
.legal-top-links a.is-active {
    color: var(--gold);
    border-color: rgba(201,169,110,0.32);
    background: rgba(201,169,110,0.08);
}

.legal-main {
    max-width: 1180px;
    margin: 0 auto;
    padding: 34px 18px 60px;
}

.legal-hero {
    padding: 0 0 30px;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-kicker {
    color: var(--gold);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.legal-title {
    margin: 10px 0 0;
    font-size: clamp(28px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
}

.legal-subtitle {
    max-width: 900px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.legal-meta {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.legal-pill {
    padding: 8px 12px;
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 999px;
    background: rgba(255,255,255,0.03);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.legal-banner {
    margin-top: 22px;
    padding: 16px 18px;
    border: 1px solid var(--border-strong);
    background: linear-gradient(180deg, rgba(201,169,110,0.08), rgba(201,169,110,0.03));
    border-radius: 12px;
    color: #ddd3bf;
    font-size: 13px;
    line-height: 1.75;
}

.legal-doc-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 24px;
}

.legal-doc-nav a {
    text-decoration: none;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.legal-doc-nav a:hover {
    color: var(--gold);
    border-color: rgba(201,169,110,0.42);
}

.legal-section {
    padding: 28px 0;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}

.legal-section:last-of-type {
    border-bottom: none;
}

.legal-section h2 {
    margin: 0 0 12px;
    font-size: 20px;
    font-weight: 600;
    color: #fff;
}

.legal-section h3 {
    margin: 18px 0 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gold);
    letter-spacing: 0.2px;
}

.legal-section p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 14px;
}

.legal-section ul,
.legal-section ol {
    margin: 12px 0 0 20px;
    padding: 0;
    color: var(--muted);
    font-size: 14px;
}

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

.legal-callout {
    margin-top: 16px;
    padding: 16px 18px;
    border-left: 3px solid var(--gold);
    background: rgba(255,255,255,0.03);
    color: #d3d3d3;
}

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

.legal-box {
    padding: 18px;
    background: rgba(255,255,255,0.025);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 12px;
}

.legal-box h3 {
    margin-top: 0;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 14px;
}

.legal-table th,
.legal-table td {
    padding: 11px 12px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    text-align: left;
    vertical-align: top;
    font-size: 13px;
}

.legal-table th {
    width: 30%;
    color: var(--gold);
    font-weight: 600;
}

.legal-table td {
    color: var(--muted);
}

.legal-footer {
    margin-top: 34px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,0.08);
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    justify-content: space-between;
    align-items: center;
}

.legal-footer p {
    margin: 0;
    color: var(--soft);
    font-size: 12px;
}

.legal-footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.legal-footer-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 12px;
}

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

.legal-home-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    color: var(--gold);
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

@media (max-width: 840px) {
    .legal-topbar-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .legal-top-links {
        justify-content: flex-start;
    }

    .legal-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .legal-table th,
    .legal-table td {
        display: block;
        width: 100%;
    }

    .legal-table th {
        padding-bottom: 4px;
        border-bottom: none;
    }

    .legal-table td {
        padding-top: 0;
    }
}

@media (max-width: 640px) {
    .legal-main {
        padding: 26px 14px 44px;
    }

    .legal-brand img {
        height: 36px;
    }

    .legal-brand-text {
        font-size: 10px;
        letter-spacing: 2.2px;
    }

    .legal-subtitle,
    .legal-section p,
    .legal-section ul,
    .legal-section ol {
        font-size: 13px;
    }

    .legal-section h2 {
        font-size: 18px;
    }
}
