/* ================================================
   legal.css — Shared styles for privacy, terms, refund
   Link after landing.css
   ================================================ */

/* Hero */
.legal-hero {
    background: linear-gradient(135deg, #0b1628 0%, #0f2d52 60%, #0a1f3d 100%);
    padding: 110px 0 64px;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.legal-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}
.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    margin: 0 auto;
    padding: 0 20px;
}
.legal-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0,139,219,0.18);
    border: 1px solid rgba(0,139,219,0.35);
    color: #60b8f5;
    padding: 6px 18px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 22px;
}
.legal-hero h1 {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    color: #fff;
    margin: 0 0 14px;
    line-height: 1.15;
}
.legal-hero > .legal-hero-inner > p {
    color: rgba(255,255,255,0.55);
    font-size: 16px;
    margin: 0;
}
.legal-updated {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 18px;
    color: rgba(255,255,255,0.38);
    font-size: 13px;
}

/* Layout grid */
.legal-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 24px 90px;
    align-items: start;
}

/* Sidebar TOC */
.legal-toc {
    position: sticky;
    top: 84px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 22px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}
.legal-toc-title {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .12em;
    color: #9ca3af;
    margin-bottom: 14px;
}
.legal-toc ul {
    list-style: none;
    margin: 0; padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.legal-toc ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    border-radius: 8px;
    border-left: 2px solid transparent;
    transition: all .18s;
}
.legal-toc ul li a:hover,
.legal-toc ul li a.active {
    background: rgba(0,139,219,.07);
    color: #008BDB;
    border-left-color: #008BDB;
    padding-left: 16px;
}

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

.legal-section {
    margin-bottom: 44px;
    scroll-margin-top: 90px;
}

.legal-section-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px; height: 30px;
    background: linear-gradient(135deg, #008BDB, #0056b3);
    color: #fff;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
}

.legal-section h2 {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin: 0 0 14px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f3f4f6;
    line-height: 1.3;
}

.legal-section p {
    font-size: 15px;
    color: #4b5563;
    line-height: 1.8;
    margin-bottom: 12px;
}
.legal-section p:last-child { margin-bottom: 0; }

.legal-section a { color: #008BDB; }

/* Lists */
.legal-section ul,
.legal-section ol {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.legal-section ul li,
.legal-section ol li {
    position: relative;
    padding: 10px 14px 10px 42px;
    font-size: 14px;
    color: #4b5563;
    background: #f9fafb;
    border: 1px solid #f0f0f0;
    border-radius: 9px;
    line-height: 1.6;
}

/* UL checkmark */
.legal-section ul li::before {
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    content: '\f00c';
    position: absolute;
    left: 14px;
    top: 12px;
    color: #008BDB;
    font-size: 11px;
}

/* OL numbers */
.legal-section ol { counter-reset: lc; }
.legal-section ol li { counter-increment: lc; }
.legal-section ol li::before {
    content: counter(lc);
    position: absolute;
    left: 12px;
    top: 10px;
    width: 20px; height: 20px;
    background: #008BDB;
    color: #fff;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Highlight box */
.legal-highlight {
    background: rgba(0,139,219,.05);
    border: 1px solid rgba(0,139,219,.18);
    border-left: 4px solid #008BDB;
    border-radius: 12px;
    padding: 18px 22px;
    margin: 18px 0;
}
.legal-highlight p { margin: 0; color: #374151; font-size: 14px; }
.legal-highlight strong { color: #008BDB; }

/* Warning box */
.legal-warning {
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-left: 4px solid #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    margin: 18px 0;
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.legal-warning i { color: #f59e0b; margin-top: 2px; flex-shrink: 0; }
.legal-warning p { margin: 0; color: #92400e; font-size: 14px; line-height: 1.6; }

/* Contact box */
.legal-contact-box {
    background: linear-gradient(135deg, #0b1628, #0f2d52);
    border-radius: 20px;
    padding: 44px 40px;
    text-align: center;
    margin-top: 56px;
    color: #fff;
}
.legal-contact-box h3 { font-size: 22px; font-weight: 700; margin: 0 0 10px; }
.legal-contact-box p { color: rgba(255,255,255,.6); font-size: 15px; margin: 0 0 24px; }

.legal-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    background: #008BDB;
    color: #fff;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all .2s;
}
.legal-cta-btn:hover {
    background: #0070c0;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0,139,219,.35);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .legal-layout {
        grid-template-columns: 1fr;
        padding: 32px 16px 60px;
        gap: 24px;
    }
    .legal-toc { position: static; }
    .legal-hero { padding: 90px 20px 48px; }
    .legal-section h2 { font-size: 18px; }
    .legal-contact-box { padding: 28px 20px; }
}