/* ===========================
   LEGAL PAGES — shared styles
   =========================== */

@font-face {
    font-family: 'Avero';
    src: url('../assets/AveroRegular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ── PAGE HERO ── */
.legal-hero {
    position: relative;
    padding: clamp(8rem, 14vh, 11rem) 0 var(--spacing-4xl);
    overflow: hidden;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 15% 60%, rgba(163,21,206,0.1) 0%, transparent 50%),
        radial-gradient(ellipse at 85% 40%, rgba(49,218,230,0.07) 0%, transparent 50%),
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: auto, auto, 60px 60px, 60px 60px;
    pointer-events: none;
}

.legal-hero-inner {
    position: relative;
    max-width: 820px;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.3);
}

.legal-breadcrumb a {
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    transition: color 0.2s ease;
}

.legal-breadcrumb a:hover {
    color: var(--color-cyan);
}

.legal-breadcrumb-sep {
    opacity: 0.4;
}

.legal-label {
    display: inline-block;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--color-cyan);
    margin-bottom: var(--spacing-md);
}

.legal-hero-title {
    font-family: 'Avero', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: normal;
    line-height: 1.05;
    color: var(--text-primary, #fff);
    margin-bottom: var(--spacing-lg);
}

.legal-meta {
    display: flex;
    gap: var(--spacing-2xl);
    flex-wrap: wrap;
}

.legal-meta-item {
    font-family: 'Inter', sans-serif;
    font-size: 0.78rem;
    color: rgba(255,255,255,0.35);
}

.legal-meta-item strong {
    color: rgba(255,255,255,0.55);
    font-weight: 600;
}

/* ── BODY LAYOUT ── */
.legal-body {
    padding: var(--spacing-5xl) 0 var(--spacing-6xl, 8rem);
}

.legal-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--spacing-4xl);
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* ── SIDEBAR TOC ── */
.legal-toc {
    position: sticky;
    top: 100px;
}

.legal-toc-title {
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
    margin-bottom: var(--spacing-lg);
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-list a {
    display: block;
    padding: 6px 12px;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    line-height: 1.4;
    color: rgba(255,255,255,0.35);
    text-decoration: none;
    border-left: 2px solid rgba(255,255,255,0.06);
    transition: color 0.2s ease, border-color 0.2s ease;
}

.legal-toc-list a:hover {
    color: var(--color-cyan);
    border-left-color: var(--color-cyan);
}

/* ── CONTENT ── */
.legal-content {
    min-width: 0;
}

.legal-section {
    margin-bottom: var(--spacing-4xl);
    scroll-margin-top: 110px;
}

.legal-section:last-child {
    margin-bottom: 0;
}

.legal-section-heading {
    font-family: 'Avero', sans-serif;
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    font-weight: normal;
    color: var(--text-primary, #fff);
    margin-bottom: var(--spacing-lg);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.legal-section-heading::before {
    content: attr(data-num);
    font-family: 'Inter', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: var(--color-cyan);
    opacity: 0.7;
    flex-shrink: 0;
}

.legal-p {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.85;
    color: var(--text-secondary, rgba(255,255,255,0.55));
    margin-bottom: var(--spacing-lg);
}

.legal-p:last-child {
    margin-bottom: 0;
}

.legal-p a {
    color: var(--color-cyan);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.legal-p a:hover {
    opacity: 0.75;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.legal-list li {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: var(--text-secondary, rgba(255,255,255,0.55));
    padding-left: var(--spacing-lg);
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--color-cyan);
    opacity: 0.5;
}

/* Highlight box */
.legal-callout {
    padding: var(--spacing-xl) var(--spacing-2xl);
    background: rgba(49,218,230,0.05);
    border-left: 3px solid var(--color-cyan);
    border-radius: 0 4px 4px 0;
    margin-bottom: var(--spacing-lg);
}

.legal-callout p {
    font-family: 'Roboto', sans-serif;
    font-size: var(--font-size-base);
    line-height: 1.75;
    color: rgba(255,255,255,0.6);
    margin: 0;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }
    .legal-toc {
        display: none;
    }
}
