/* ══════════════════════════════════════════════════════════════
   LEGAL PAGES — Terms & Conditions / Privacy Policy
   Clean, no-header, no-footer document layout
   ══════════════════════════════════════════════════════════════ */

/* Override: hide cursor on legal pages (no GSAP loaded) */
body.legal-page {
    cursor: auto;
    overflow-x: hidden;
}

body.legal-page a {
    cursor: pointer;
}

/* ─── Top Bar ─── */
.legal-topbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 8%;
    background: rgba(232, 240, 254, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 71, 153, 0.06);
    transition: background 0.3s ease;
}

.legal-back-link {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--f-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s ease, transform 0.3s ease;
}

.legal-back-link:hover {
    color: var(--accent);
    transform: translateX(-4px);
}

.legal-back-link svg {
    transition: transform 0.3s ease;
}

.legal-back-link:hover svg {
    transform: translateX(-3px);
}

.legal-brand {
    font-family: var(--f-sans);
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: var(--text);
}

/* ─── Main Container ─── */
.legal-main {
    padding-top: 80px;
    min-height: 100vh;
}

.legal-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 8%;
}

/* ─── Hero ─── */
.legal-hero {
    padding: 8vh 0 6vh;
    border-bottom: 1px solid rgba(0, 71, 153, 0.08);
    margin-bottom: 6vh;
}

.legal-eyebrow {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-2);
    display: block;
    margin-bottom: 1.5rem;
}

.legal-hero h1 {
    font-family: var(--f-sans);
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 1rem;
}

.legal-hero h1 em {
    font-family: var(--f-serif);
    font-style: italic;
    font-weight: 400;
}

.legal-updated {
    font-family: var(--f-mono);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

/* ─── Content Sections ─── */
.legal-content {
    padding-bottom: 6vh;
}

.legal-section {
    padding: 4vh 0;
    border-bottom: 1px solid rgba(0, 71, 153, 0.06);
    animation: legalFadeIn 0.6s ease forwards;
    opacity: 0;
    animation-delay: calc(var(--section-index, 0) * 0.05s);
}

.legal-section:last-child {
    border-bottom: none;
}

/* Stagger animation */
.legal-section:nth-child(1) {
    animation-delay: 0.1s;
}

.legal-section:nth-child(2) {
    animation-delay: 0.15s;
}

.legal-section:nth-child(3) {
    animation-delay: 0.2s;
}

.legal-section:nth-child(4) {
    animation-delay: 0.25s;
}

.legal-section:nth-child(5) {
    animation-delay: 0.3s;
}

.legal-section:nth-child(6) {
    animation-delay: 0.35s;
}

.legal-section:nth-child(7) {
    animation-delay: 0.4s;
}

.legal-section:nth-child(8) {
    animation-delay: 0.45s;
}

.legal-section:nth-child(9) {
    animation-delay: 0.5s;
}

.legal-section:nth-child(10) {
    animation-delay: 0.55s;
}

.legal-section:nth-child(11) {
    animation-delay: 0.6s;
}

.legal-section:nth-child(12) {
    animation-delay: 0.65s;
}

.legal-section:nth-child(13) {
    animation-delay: 0.7s;
}

.legal-section:nth-child(14) {
    animation-delay: 0.75s;
}

.legal-section:nth-child(15) {
    animation-delay: 0.8s;
}

@keyframes legalFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.legal-section h2 {
    font-family: var(--f-sans);
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 600;
    color: var(--text);
    margin-bottom: 1.5rem;
    line-height: 1.3;
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.section-num {
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    color: var(--accent-2);
    flex-shrink: 0;
    position: relative;
    top: -1px;
}

.legal-section h3 {
    font-family: var(--f-sans);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    padding-left: 20px;
    border-left: 2px solid var(--accent-2);
}

.legal-section p {
    font-family: var(--f-sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    margin-bottom: 1rem;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-caps {
    font-size: 0.9rem !important;
    letter-spacing: 0.02em;
    font-weight: 500;
    color: var(--text) !important;
    background: rgba(0, 71, 153, 0.04);
    padding: 15px 20px;
    border-left: 3px solid var(--accent);
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.legal-list li {
    font-family: var(--f-sans);
    font-size: 1rem;
    line-height: 1.85;
    color: var(--text-muted);
    padding: 6px 0 6px 28px;
    position: relative;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 16px;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    border-radius: 50%;
    opacity: 0.5;
}

.legal-list li strong {
    color: var(--text);
    font-weight: 600;
}

.legal-inline-link {
    color: var(--accent-2);
    border-bottom: 1px solid var(--accent-2);
    padding-bottom: 1px;
    transition: color 0.3s, border-color 0.3s;
}

.legal-inline-link:hover {
    color: var(--accent);
    border-color: var(--accent);
}

/* ─── Contact Section within Legal ─── */
.legal-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-top: 1.5rem;
}

.legal-contact-item {
    padding: 20px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 71, 153, 0.06);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.legal-contact-item:hover {
    transform: translateY(-3px);
    border-color: var(--accent-2);
}

.legal-contact-label {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    display: block;
    margin-bottom: 8px;
    opacity: 0.6;
}

.legal-contact-item a {
    font-family: var(--f-sans);
    font-size: 1rem;
    color: var(--text);
    transition: color 0.3s;
}

.legal-contact-item a:hover {
    color: var(--accent-2);
}

.legal-contact-item p {
    font-size: 1rem !important;
    color: var(--text) !important;
    margin-bottom: 0 !important;
}

.legal-contact-note {
    font-size: 0.8rem !important;
    color: var(--text-muted) !important;
    margin-top: 4px;
}

/* ─── Bottom Navigation ─── */
.legal-bottom-nav {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 4vh 0 8vh;
    border-top: 1px solid rgba(0, 71, 153, 0.08);
    margin-top: 2vh;
}

.legal-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 20px 25px;
    background: var(--bg-card);
    border: 1px solid rgba(0, 71, 153, 0.06);
    flex: 1;
    transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
    text-decoration: none;
}

.legal-nav-link:hover {
    transform: translateY(-4px);
    border-color: var(--accent-2);
    background: rgba(1, 142, 239, 0.05);
}

.legal-nav-label {
    font-family: var(--f-mono);
    font-size: 0.6rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-muted);
    opacity: 0.5;
}

.legal-nav-title {
    font-family: var(--f-sans);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text);
    transition: color 0.3s;
}

.legal-nav-link:hover .legal-nav-title {
    color: var(--accent-2);
}

/* ─── Footer Bar (minimal) ─── */
.legal-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 8%;
    font-family: var(--f-mono);
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    border-top: 1px solid rgba(0, 71, 153, 0.08);
    background: var(--bg);
}

.copyright-symbol {
    font-size: 1.2rem;
    margin-right: 2px;
    vertical-align: baseline;
    display: inline-block;
    transform: translateY(6px);
    line-height: 0;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
    .legal-topbar {
        padding: 15px 5%;
    }

    .legal-brand {
        display: none;
    }

    .legal-container {
        padding: 0 5%;
    }

    .legal-hero {
        padding: 5vh 0 4vh;
    }

    .legal-section h2 {
        flex-direction: column;
        gap: 4px;
    }

    .legal-section h3 {
        padding-left: 15px;
    }

    .legal-bottom-nav {
        flex-direction: column;
    }

    .legal-contact-grid {
        grid-template-columns: 1fr;
    }

    .legal-footer-bar {
        padding: 12px 5%;
        font-size: 0.6rem;
    }
}
