/* ============================================
   LEGAL PAGES (Privacy, Terms) – Shared Styles
   ============================================ */

/* ----- HERO ----- */
.hero-legal {
    min-height: 55vh;
    background: var(--color-deep-blue);
    padding: 6rem 1.5rem 3rem;
}

.hero-legal .hero-subtitle {
    max-width: 680px;
}

.hero-updated {
    display: inline-block;
    margin-top: 1.25rem;
    padding: 0.3rem 1rem;
    background: rgba(201, 168, 76, 0.1);
    border: 1px solid rgba(201, 168, 76, 0.25);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--color-gold-light);
    letter-spacing: 0.5px;
}

/* ----- LAYOUT ----- */
.legal-section {
    padding: 4rem 0 5rem;
    background: var(--color-off-white);
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 3rem;
    max-width: 1100px;
    margin: 0 auto;
    align-items: start;
}

/* ----- TABLE OF CONTENTS ----- */
.legal-toc {
    position: sticky;
    top: 100px;
    background: var(--color-white);
    padding: 1.75rem 1.5rem;
    border-radius: 12px;
    border-left: 4px solid var(--color-gold);
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.legal-toc h4 {
    font-family: var(--font-body);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--color-gold-dark);
    font-weight: 700;
    margin-bottom: 1rem;
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 0.5rem;
}

.legal-toc a {
    display: block;
    font-size: 0.85rem;
    color: var(--color-deep-blue-light);
    padding: 0.25rem 0;
    line-height: 1.4;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.legal-toc a:hover {
    color: var(--color-gold-dark);
    padding-left: 0.25rem;
}

/* ----- MAIN CONTENT ----- */
.legal-content {
    background: var(--color-white);
    padding: 3rem 2.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(10, 22, 40, 0.04);
}

.legal-content section {
    margin-bottom: 2.5rem;
    scroll-margin-top: 100px; /* offset for sticky header when jumping to anchors */
}

.legal-content section:last-of-type {
    margin-bottom: 0;
}

.legal-content h2 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    color: var(--color-deep-blue);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid rgba(201, 168, 76, 0.3);
}

.legal-content p {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-deep-blue-light);
    margin-bottom: 1rem;
}

.legal-content p:last-child {
    margin-bottom: 0;
}

.legal-content a {
    color: var(--color-gold-dark);
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
}

.legal-content a:hover {
    color: var(--color-gold);
}

.legal-content strong {
    color: var(--color-deep-blue);
    font-weight: 700;
}

.legal-content ol,
.legal-content ul {
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ol li,
.legal-content ul li {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--color-deep-blue-light);
    padding: 0.25rem 0;
}

.legal-content ol li::marker {
    color: var(--color-gold-dark);
    font-weight: 700;
}

/* Contact blocks inside legal content */
.legal-contact {
    background: var(--color-off-white);
    padding: 1.25rem 1.5rem;
    border-radius: 8px;
    border-left: 3px solid var(--color-gold);
    margin: 1rem 0;
}

.legal-contact p {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.legal-contact p:last-child {
    margin-bottom: 0;
}

/* Footer note */
.legal-footer-note {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    text-align: center;
}

.legal-footer-note p {
    font-size: 0.85rem;
    color: var(--color-silver-dark);
    margin-bottom: 0.5rem;
}

.legal-footer-note p:last-child {
    margin-bottom: 0;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
    .legal-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    .legal-toc {
        position: static;
        top: auto;
    }
    .legal-toc ul {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.25rem 1.5rem;
    }
}

@media (max-width: 768px) {
    .hero-legal {
        min-height: 45vh;
        padding: 5rem 1.5rem 2rem;
    }
    .legal-content {
        padding: 2rem 1.5rem;
    }
    .legal-content h2 {
        font-size: 1.25rem;
    }
    .legal-toc ul {
        grid-template-columns: 1fr;
    }
    .legal-content section {
        scroll-margin-top: 80px;
    }
}