/* ========================================
   LEGAL PAGES - Privacy Policy & Terms of Service
   ======================================== */

/* --- Page Hero --- */
.legal-hero {
    padding: 5rem 0 3.5rem;
    background: linear-gradient(135deg, #0d1220 0%, #111621 60%, #13203a 100%);
    border-bottom: 1px solid var(--border-dark);
    text-align: center;
}

.legal-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(25, 76, 179, 0.15);
    border: 1px solid rgba(25, 76, 179, 0.35);
    color: #6b9ef0;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 1rem;
    border-radius: 999px;
    margin-bottom: 1.25rem;
}

.legal-hero h1 {
    font-size: clamp(1.75rem, 5vw, 3rem);
    font-weight: 800;
    color: var(--text-white);
    margin-bottom: 1rem;
    line-height: 1.2;
    text-transform: capitalize;
}

.legal-hero-meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-top: 1rem;
    color: var(--text-slate);
    font-size: 0.875rem;
}

.legal-hero-meta span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.legal-hero-meta .material-symbols-outlined {
    font-size: 1rem;
    color: #6b9ef0;
}

/* --- Legal Layout --- */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 3rem;
    align-items: start;
    max-width: 1100px;
    margin: 0 auto;
    padding: 3rem 1.5rem 5rem;
}

/* --- Table of Contents (sticky sidebar) --- */
.legal-toc {
    position: sticky;
    top: 5rem;
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    padding: 1.25rem;
}

.legal-toc-title {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-slate);
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-dark);
}

.legal-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.legal-toc ol li a {
    display: block;
    font-size: 0.8rem;
    color: var(--text-slate);
    text-decoration: none;
    padding: 0.3rem 0.5rem;
    border-radius: 0.375rem;
    line-height: 1.4;
    transition: background 0.15s, color 0.15s;
}

.legal-toc ol li a:hover {
    background: rgba(25, 76, 179, 0.12);
    color: #6b9ef0;
}

/* --- Main Legal Content --- */
.legal-content {
    min-width: 0;
}

/* Company address block */
.legal-address-block {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-left: 3px solid var(--primary);
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin-bottom: 2.5rem;
    font-size: 0.875rem;
    color: var(--text-slate);
    line-height: 1.7;
}

.legal-address-block strong {
    color: var(--text-white);
    display: block;
    margin-bottom: 0.25rem;
}

/* Section divider */
.legal-divider {
    border: none;
    border-top: 1px solid var(--border-dark);
    margin: 2.5rem 0;
}

/* Sections */
.legal-section {
    margin-bottom: 0.5rem;
    scroll-margin-top: 6rem;
}

/* H2 section heading */
.legal-content h2 {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-white);
    margin-bottom: 1rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid var(--border-dark);
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.75rem;
    height: 1.75rem;
    background: rgba(25, 76, 179, 0.18);
    border: 1px solid rgba(25, 76, 179, 0.35);
    border-radius: 0.375rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: #6b9ef0;
    flex-shrink: 0;
}

/* H3 subsection heading */
.legal-content h3 {
    font-size: 0.9rem;
    font-weight: 600;
    color: #cbd5e1;
    margin: 1.25rem 0 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Paragraph */
.legal-content p {
    color: var(--text-slate);
    font-size: 0.9rem;
    line-height: 1.75;
    margin-bottom: 0.75rem;
}

/* Lists */
.legal-content ul,
.legal-content ol {
    padding-left: 0;
    margin-bottom: 0.875rem;
    list-style: none;
}

.legal-content ul li,
.legal-content ol li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    color: var(--text-slate);
    font-size: 0.875rem;
    line-height: 1.65;
    border-bottom: 1px solid rgba(45, 55, 72, 0.4);
}

.legal-content ul li:last-child,
.legal-content ol li:last-child {
    border-bottom: none;
}

.legal-content ul li::before {
    content: '';
    position: absolute;
    left: 0.375rem;
    top: 0.75rem;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--primary);
    flex-shrink: 0;
}

.legal-content ul li strong,
.legal-content p strong {
    color: #e2e8f0;
    font-weight: 600;
}

/* Notice / warning box */
.legal-notice {
    background: rgba(220, 100, 30, 0.08);
    border: 1px solid rgba(220, 100, 30, 0.3);
    border-left: 3px solid #dc6430;
    border-radius: 0.5rem;
    padding: 1rem 1.25rem;
    margin: 1rem 0 1.25rem;
    color: #f0a070;
    font-size: 0.875rem;
    font-weight: 600;
}

/* Contact info box */
.legal-contact-box {
    background: var(--surface-dark);
    border: 1px solid var(--border-dark);
    border-radius: 0.75rem;
    padding: 1.25rem 1.5rem;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: var(--text-slate);
    line-height: 1.9;
}

.legal-contact-box strong {
    color: var(--text-white);
}

.legal-contact-box a {
    color: #6b9ef0;
    text-decoration: none;
}

.legal-contact-box a:hover {
    text-decoration: underline;
}

/* Footer note */
.legal-footer-note {
    margin-top: 2.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-dark);
    font-size: 0.8rem;
    color: #64748b;
}

/* --- Responsive: collapse sidebar on small screens --- */
@media (max-width: 900px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }
}
