/* ─── LEGAL DOCUMENT PAGE STYLES ────────────────────────────── */

.legal-hero {
    padding: 4rem 1rem 3rem;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    position: relative;
    overflow: hidden;
}

.legal-hero::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255,255,255,0.8), transparent);
    animation: scan-h 6s linear infinite;
    pointer-events: none;
    box-shadow: 0 0 8px rgba(255,255,255,0.4);
}

.legal-hero-inner {
    max-width: 860px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.legal-back {
    margin-bottom: 2rem;
}

.legal-back a {
    font-family: var(--font-mono);
    font-size: 0.65rem;
    letter-spacing: 0.2em;
    color: var(--white);
    text-decoration: none;
    opacity: 0.5;
    transition: opacity 0.15s;
}

.legal-back a:hover {
    opacity: 1;
}

.legal-doc-type {
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.35em;
    opacity: 0.4;
    margin-bottom: 0.75rem;
}

.legal-title {
    font-family: var(--font-mono);
    font-size: clamp(1.6rem, 5vw, 3rem);
    font-weight: bold;
    letter-spacing: 0.06em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
}

.legal-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.legal-meta-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.legal-meta-label {
    font-family: var(--font-mono);
    font-size: 0.52rem;
    letter-spacing: 0.3em;
    opacity: 0.35;
}

.legal-meta-value {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
}

/* ─── DOCUMENT BODY ──────────────────────────────────────────── */

.legal-body {
    max-width: 860px;
    margin: 0 auto;
}

.legal-intro {
    font-family: var(--font-mono);
    font-size: 0.87rem;
    line-height: 1.9;
    opacity: 0.7;
    padding: 2.5rem 0 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 2.5rem;
    margin-bottom: 0;
}

.legal-section {
    padding: 2.25rem 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.legal-section:last-child {
    border-bottom: none;
}

.legal-section-num {
    font-family: var(--font-mono);
    font-size: 0.55rem;
    letter-spacing: 0.3em;
    opacity: 0.3;
    margin-bottom: 0.4rem;
}

.legal-section-title {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    font-weight: bold;
    letter-spacing: 0.22em;
    margin-bottom: 1.25rem;
}

.legal-section p {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    line-height: 1.9;
    opacity: 0.7;
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section ul,
.legal-section ol {
    margin: 0.75rem 0 1rem 0;
    padding-left: 0;
    list-style: none;
}

.legal-section li {
    font-family: var(--font-mono);
    font-size: 0.83rem;
    line-height: 1.9;
    opacity: 0.7;
    padding-left: 1.5rem;
    position: relative;
    margin-bottom: 0.3rem;
}

.legal-section li::before {
    content: '—';
    position: absolute;
    left: 0;
    opacity: 0.4;
}

.legal-subsection {
    margin: 1.25rem 0 0.5rem;
}

.legal-subsection-title {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: bold;
    letter-spacing: 0.15em;
    margin-bottom: 0.6rem;
    opacity: 0.85;
}

.legal-sub-indent {
    padding-left: 1.5rem;
    border-left: 1px solid rgba(255,255,255,0.1);
}

.legal-highlight {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    line-height: 1.85;
    opacity: 0.65;
    padding: 1rem 1.25rem;
    border: 1px solid rgba(255,255,255,0.12);
    margin: 1rem 0;
}

.legal-developers {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    opacity: 0.55;
    margin-top: 0.75rem;
}

@media (max-width: 768px) {
    .legal-title {
        font-size: clamp(1.4rem, 7vw, 2rem);
    }

    .legal-section,
    .legal-intro {
        padding-left: 0;
        padding-right: 0;
    }
}
