/* ============================================
   LEGAL PAGES CSS - terms, privacy, disclaimer
   Matches brand design system
   ============================================ */

:root {
    --primary: #7ed0fb;
    --secondary: #191660;
    --accent: #b1a77b;
    --white: #ffffff;
    --dark: #1a1a1a;
    --light: #f5f5f5;
    --text: #333333;
    --text-light: #666666;
    --border: #e0e0e0;
    --shadow: 0 4px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.12);
    --success: #28a745;
    --warning: #e67e22;
    --danger: #e74c3c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
      font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

}

/* ============================================
   HERO SECTION
   ============================================ */

.legal-hero {
    background: linear-gradient(135deg, var(--secondary) 0%, #0f0a3a 60%, #1a1060 100%);
    padding: 90px 20px 70px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(126,208,251,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.legal-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--accent), var(--primary));
}

.privacy-hero {
    background: linear-gradient(135deg, #0a3d2e 0%, #145a32 60%, #1a7a45 100%);
}

.privacy-hero::before {
    background: radial-gradient(circle, rgba(126,251,180,0.08) 0%, transparent 60%);
}

.disclaimer-hero {
    background: linear-gradient(135deg, #4a1a00 0%, #7d3100 60%, #9d4500 100%);
}

.disclaimer-hero::before {
    background: radial-gradient(circle, rgba(251,177,126,0.08) 0%, transparent 60%);
}

.legal-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.legal-icon {
    width: 90px;
    height: 90px;
    background: rgba(255,255,255,0.1);
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: var(--primary);
    backdrop-filter: blur(10px);
}

.privacy-hero .legal-icon {
    color: #7efbb4;
}

.disclaimer-hero .legal-icon {
    color: #fbb17e;
}

.legal-hero h1 {
    font-size: 3.2rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.legal-hero p {
    font-size: 1rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 20px;
}

.legal-breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 0.9rem;
    color: rgba(255,255,255,0.6);
}

.legal-breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.3s ease;
}

.legal-breadcrumb a:hover {
    color: var(--white);
}

.legal-breadcrumb span {
    color: rgba(255,255,255,0.4);
}

/* ============================================
   WRAPPER & LAYOUT
   ============================================ */

.legal-wrapper {
    padding: 60px 0 80px;
    background: var(--light);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: start;
}

/* ============================================
   SIDEBAR
   ============================================ */

.legal-sidebar {
    position: relative;
}

.toc-box {
    background: var(--white);
    border-radius: 12px;
    padding: 30px 25px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--primary);
}

.sticky-toc {
    position: sticky;
    top: 100px;
}

.toc-box h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid var(--border);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.toc-box ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-box ul li {
    margin-bottom: 4px;
}

.toc-box ul li a {
    display: block;
    padding: 8px 12px;
    font-size: 0.88rem;
    color: var(--text-light);
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
    line-height: 1.4;
    border-left: 3px solid transparent;
}

.toc-box ul li a:hover {
    background: rgba(126,208,251,0.1);
    color: var(--secondary);
    border-left-color: var(--primary);
    padding-left: 16px;
}

/* ============================================
   MAIN CONTENT
   ============================================ */

.legal-content {
    background: var(--white);
    border-radius: 12px;
    padding: 50px;
    box-shadow: var(--shadow);
}

/* Alert Box */
.legal-alert {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background: rgba(126,208,251,0.1);
    border: 1px solid rgba(126,208,251,0.4);
    border-left: 4px solid
var(--primary);
    border-radius: 10px;
    padding: 20px 25px;
    margin-bottom: 40px;
    color: var(--text);
    font-size: 0.95rem;
    line-height: 1.6;
}

.legal-alert svg {
    flex-shrink: 0;
    color: var(--primary);
    margin-top: 2px;
}

.warning-alert {
    background: rgba(230,126,34,0.08);
    border-color: rgba(230,126,34,0.3);
    border-left-color: var(--warning);
}

.warning-alert svg {
    color: var(--warning);
}

/* ============================================
   LEGAL SECTIONS
   ============================================ */

.legal-section {
    margin-bottom: 55px;
    padding-bottom: 55px;
    border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.legal-section h2 {
    font-size: 1.7rem;
    font-weight: 800;
    color: var(--secondary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    line-height: 1.3;
}

.section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: var(--secondary);
    font-size: 0.85rem;
    font-weight: 800;
    border-radius: 10px;
    flex-shrink: 0;
    letter-spacing: 0.5px;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--secondary);
    margin: 25px 0 15px;
    padding-left: 15px;
    border-left: 3px solid var(--primary);
}

.legal-section p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.85;
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

/* ============================================
   LISTS
   ============================================ */

.legal-list {
    list-style: none;
    padding: 0;
    margin: 15px 0 20px;
}

.legal-list li {
    position: relative;
    padding: 10px 15px 10px 35px;
    font-size: 0.97rem;
    color: var(--text-light);
    line-height: 1.75;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.legal-list li:last-child {
    border-bottom: none;
}

.legal-list li::before {
    content: '▸';
    position: absolute;
    left: 12px;
    top: 11px;
    color: var(--primary);
    font-size: 0.9rem;
}

.legal-list li strong {
    color: var(--secondary);
    font-weight: 600;
}

/* ============================================
   HIGHLIGHT BOXES
   ============================================ */

.highlight-box {
    background: rgba(126,208,251,0.08);
    border: 1px solid rgba(126,208,251,0.3);
    border-left: 4px solid var(--primary);
    border-radius: 8px;
    padding: 20px 25px;
    margin: 25px 0;
    font-size: 0.95rem;
    color: var(--text);
    line-height: 1.7;
}

.highlight-box strong {
    color: var(--secondary);
    display: block;
    margin-bottom: 6px;
    font-size: 1rem;
}

.highlight-box.warning {
    background: rgba(230,126,34,0.07);
    border-color: rgba(230,126,34,0.25);
    border-left-color: var(--warning);
}

.highlight-box.warning strong {
    color: var(--warning);
}

/* ============================================
   PROHIBITED GRID
   ============================================ */

.prohibited-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.prohibited-item {
    background: var(--light);
    border-radius: 10px;
    padding: 22px 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.prohibited-item:hover {
    border-color: #e74c3c;
    box-shadow: 0 4px 15px rgba(231,76,60,0.1);
    transform: translateY(-3px);
}

.prohibited-icon {
    font-size: 1.6rem;
    display: block;
    margin-bottom: 10px;
}

.prohibited-item strong {
    display: block;
    font-size: 1rem;
    color: var(--secondary);
    font-weight: 700;
    margin-bottom: 8px;
}

.prohibited-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   INFO CARDS (How We Collect)
   ============================================ */

.info-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.info-card {
    background: var(--light);
    border-radius: 10px;
    padding: 25px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.info-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.info-card-icon {
    font-size: 2.2rem;
    margin-bottom: 12px;
    display: block;
}

.info-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.info-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   COOKIE TABLE
   ============================================ */

.cookie-table-wrapper {
    overflow-x: auto;
    margin: 25px 0;
    border-radius: 10px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
}

.cookie-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.cookie-table thead {
    background: var(--secondary);
    color: var(--white);
}

.cookie-table thead th {
    padding: 16px 20px;
    text-align: left;
    font-weight: 600;
    font-size: 0.88rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.cookie-table tbody tr {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s ease;
}

.cookie-table tbody tr:last-child {
    border-bottom: none;
}

.cookie-table tbody tr:hover {
    background: rgba(126,208,251,0.06);
}

.cookie-table tbody td {
    padding: 15px 20px;
    color: var(--text-light);
    line-height: 1.5;
    vertical-align: middle;
}

.cookie-table tbody td strong {
    color: var(--secondary);
}

/* ============================================
   SECURITY GRID
   ============================================ */

.security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.security-item {
    background: var(--light);
    border-radius: 10px;
    padding: 25px 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    border-top: 3px solid var(--primary);
}

.security-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.security-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.security-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.security-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   ACCURACY GRID
   ============================================ */

.accuracy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.accuracy-item {
    background: var(--light);
    border-radius: 10px;
    padding: 25px 20px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.accuracy-item:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.accuracy-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 12px;
}

.accuracy-item h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.accuracy-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   ADVICE GRID
   ============================================ */

.advice-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.advice-card {
    background: var(--light);
    border-radius: 10px;
    padding: 28px 22px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
    text-align: center;
}

.advice-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.advice-icon {
    font-size: 2.4rem;
    display: block;
    margin-bottom: 14px;
}

.advice-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.advice-card p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   CONTACT GRID
   ============================================ */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 25px 0;
}

.contact-card {
    background: var(--light);
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.contact-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    background: var(--white);
}

.contact-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 15px;
}

.contact-card h4 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--secondary);
    margin-bottom: 10px;
}

.contact-card p {
    font-size: 0.9rem;
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

.contact-card p small {
    font-size: 0.8rem;
    color: var(--text-light);
    opacity: 0.8;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: 240px 1fr;
        gap: 30px;
    }

    .legal-content {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 70px 20px 50px;
    }

    .legal-hero h1 {
        font-size: 2.2rem;
    }

    .legal-icon {
        width: 70px;
        height: 70px;
    }

    .legal-icon svg {
        width: 36px;
        height: 36px;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        order: 2;
    }

    .legal-content {
        order: 1;
        padding: 30px 25px;
    }

    .sticky-toc {
        position: relative;
        top: auto;
    }

    .toc-box {
        padding: 20px;
    }

    .legal-section h2 {
        font-size: 1.4rem;
    }

    .section-num {
        min-width: 40px;
        height: 40px;
        font-size: 0.78rem;
    }

    .prohibited-grid,
    .info-cards,
    .security-grid,
    .accuracy-grid,
    .advice-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .cookie-table thead th,
    .cookie-table tbody td {
        padding: 12px 14px;
        font-size: 0.82rem;
    }
}
@media (max-width: 480px) {
    .legal-hero {
        padding: 60px 15px 40px;
    }

    .legal-hero h1 {
        font-size: 1.8rem;
    }

    .legal-hero p {
        font-size: 0.9rem;
    }

    .legal-icon {
        width: 60px;
        height: 60px;
    }

    .legal-icon svg {
        width: 30px;
        height: 30px;
    }

    .legal-wrapper {
        padding: 30px 0 50px;
    }

    .legal-content {
        padding: 25px 18px;
        border-radius: 8px;
    }

    .legal-alert {
        padding: 15px 18px;
        font-size: 0.88rem;
        flex-direction: column;
        gap: 10px;
    }

    .legal-section {
        margin-bottom: 40px;
        padding-bottom: 40px;
    }

    .legal-section h2 {
        font-size: 1.2rem;
        gap: 12px;
    }

    .section-num {
        min-width: 36px;
        height: 36px;
        font-size: 0.72rem;
        border-radius: 8px;
    }

    .legal-section h3 {
        font-size: 1rem;
        margin: 20px 0 12px;
    }

    .legal-section p {
        font-size: 0.93rem;
        line-height: 1.75;
    }

    .legal-list li {
        font-size: 0.88rem;
        padding: 9px 12px 9px 30px;
    }

    .highlight-box {
        padding: 16px 18px;
        font-size: 0.88rem;
    }

    .prohibited-item {
        padding: 18px 15px;
    }

    .prohibited-icon {
        font-size: 1.4rem;
    }

    .prohibited-item strong {
        font-size: 0.95rem;
    }

    .prohibited-item p {
        font-size: 0.83rem;
    }

    .info-card {
        padding: 20px 15px;
    }

    .info-card-icon {
        font-size: 1.8rem;
    }

    .info-card h4 {
        font-size: 0.95rem;
    }

    .info-card p {
        font-size: 0.83rem;
    }

    .cookie-table-wrapper {
        font-size: 0.8rem;
    }

    .cookie-table thead th {
        padding: 12px 10px;
        font-size: 0.78rem;
    }

    .cookie-table tbody td {
        padding: 10px;
        font-size: 0.8rem;
    }

    .security-item {
        padding: 20px 15px;
    }

    .security-icon {
        font-size: 1.7rem;
    }

    .security-item h4 {
        font-size: 0.95rem;
    }

    .security-item p {
        font-size: 0.83rem;
    }

    .accuracy-item {
        padding: 20px 15px;
    }

    .accuracy-icon {
        font-size: 1.7rem;
    }

    .accuracy-item h4 {
        font-size: 0.95rem;
    }

    .accuracy-item p {
        font-size: 0.83rem;
    }

    .advice-card {
        padding: 22px 15px;
    }

    .advice-icon {
        font-size: 2rem;
    }

    .advice-card h4 {
        font-size: 0.95rem;
    }

    .advice-card p {
        font-size: 0.83rem;
    }

    .contact-card {
        padding: 22px 15px;
    }

    .contact-icon {
        font-size: 2rem;
    }

    .contact-card h4 {
        font-size: 0.95rem;
    }

    .contact-card p {
        font-size: 0.85rem;
    }

    .toc-box h3 {
        font-size: 1rem;
    }

    .toc-box ul li a {
        font-size: 0.82rem;
        padding: 7px 10px;
    }
}

/* ============================================
   PRINT STYLES
   ============================================ */

@media print {
    .legal-hero {
        background: var(--secondary) !important;
        -webkit-print-color-adjust: exact;
        print-color-adjust: exact;
    }

    .legal-sidebar {
        display: none;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-content {
        box-shadow: none;
        padding: 20px;
    }

    .legal-section {
        page-break-inside: avoid;
    }

    .prohibited-grid,
    .info-cards,
    .security-grid,
    .accuracy-grid,
    .advice-grid,
    .contact-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */

.toc-box ul li a:focus,
.contact-card:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   SCROLLBAR
   ============================================ */

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--secondary);
}

/* ============================================
   SMOOTH SCROLL OFFSET FOR STICKY NAV
   ============================================ */

[id] {
    scroll-margin-top: 100px;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primary);
}

.text-secondary {
    color: var(--secondary);
}

.text-accent {
    color: var(--accent);
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.fw-bold {
    font-weight: 700;
}
