/* ========================================
   LEGAL PAGES - Privacy Policy & Terms
   ======================================== */

/* Header */
.legal-header {
    padding: 140px 0 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, #1a2744 50%, #0d1b2a 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.legal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(0, 206, 209, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(0, 206, 209, 0.05) 0%, transparent 40%);
    pointer-events: none;
}

.legal-header .header-content {
    position: relative;
    z-index: 1;
}

.legal-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(0, 206, 209, 0.15);
    color: var(--primary-color);
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(0, 206, 209, 0.25);
}

.legal-header h1 {
    font-size: 3rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}

.legal-header p {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 1.25rem;
}

.legal-date {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

.legal-date i {
    color: var(--primary-color);
}

/* Content Section */
.legal-content {
    padding: 60px 0 80px;
    background: var(--bg-white);
}

.legal-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
}

/* Sidebar / TOC */
.legal-sidebar {
    flex-shrink: 0;
    width: 260px;
    position: sticky;
    top: 100px;
}

.toc-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.toc-card h4 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.toc-card h4 i {
    color: var(--primary-color);
    font-size: 0.85rem;
}

.toc-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-card ul li {
    margin-bottom: 0.4rem;
}

.toc-card ul li a {
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.85rem;
    padding: 0.35rem 0.75rem;
    border-radius: 8px;
    display: block;
    transition: all 0.2s ease;
    border-left: 2px solid transparent;
}

.toc-card ul li a:hover {
    color: var(--primary-color);
    background: rgba(0, 206, 209, 0.06);
    border-left-color: var(--primary-color);
}

/* Main Content */
.legal-main {
    flex: 1;
    min-width: 0;
}

.legal-section {
    margin-bottom: 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.legal-section h2 i {
    color: var(--primary-color);
    font-size: 1.15rem;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 10px;
    flex-shrink: 0;
}

.legal-section h3 {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin: 1.5rem 0 0.75rem;
}

.legal-section p {
    font-size: 1rem;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-section ul {
    padding-left: 0;
    margin-bottom: 1rem;
    list-style: none;
}

.legal-section ul li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--text-light);
    line-height: 1.7;
}

.legal-section ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary-color);
}

.legal-section ul li strong {
    color: var(--secondary-color);
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s;
}

.legal-section a:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Legal Grid */
.legal-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin: 1.25rem 0;
}

.legal-grid-item {
    background: var(--bg-light);
    border-radius: 14px;
    padding: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.legal-grid-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}

.legal-grid-item i {
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
    display: block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: rgba(0, 206, 209, 0.1);
    border-radius: 10px;
}

.legal-grid-item h4 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 0.4rem;
}

.legal-grid-item p {
    font-size: 0.88rem;
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}

/* Callout Box */
.legal-callout {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    background: linear-gradient(135deg, rgba(0, 206, 209, 0.06), rgba(0, 206, 209, 0.02));
    border: 1px solid rgba(0, 206, 209, 0.15);
    border-radius: 14px;
    padding: 1.25rem 1.5rem;
    margin: 1.25rem 0;
}

.legal-callout>i {
    color: var(--primary-color);
    font-size: 1.1rem;
    margin-top: 0.15rem;
    flex-shrink: 0;
}

.legal-callout p {
    margin: 0;
    font-size: 0.92rem;
}

.legal-callout.warning {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.08), rgba(255, 193, 7, 0.02));
    border-color: rgba(255, 193, 7, 0.25);
}

.legal-callout.warning>i {
    color: #f0ad4e;
}

/* Contact Card */
.legal-contact-card {
    background: var(--bg-light);
    border-radius: 16px;
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 1.25rem;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.legal-contact-card .contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.legal-contact-card .contact-item>i {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 206, 209, 0.1);
    color: var(--primary-color);
    border-radius: 12px;
    font-size: 1rem;
    flex-shrink: 0;
}

.legal-contact-card .contact-item div {
    display: flex;
    flex-direction: column;
}

.legal-contact-card .contact-item strong {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legal-contact-card .contact-item a,
.legal-contact-card .contact-item span {
    font-size: 1rem;
    color: var(--secondary-color);
    font-weight: 600;
    text-decoration: none;
}

.legal-contact-card .contact-item a:hover {
    color: var(--primary-color);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 1024px) {
    .legal-sidebar {
        display: none;
    }

    .legal-wrapper {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .legal-header {
        padding: 120px 0 50px;
    }

    .legal-header h1 {
        font-size: 2.25rem;
    }

    .legal-header p {
        font-size: 1rem;
    }

    .legal-content {
        padding: 40px 0 60px;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }

    .legal-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .legal-header {
        padding: 110px 0 40px;
    }

    .legal-header h1 {
        font-size: 1.75rem;
    }

    .legal-section {
        margin-bottom: 2rem;
        padding-bottom: 1.75rem;
    }

    .legal-section h2 {
        font-size: 1.15rem;
    }

    .legal-callout {
        flex-direction: column;
        gap: 0.5rem;
    }

    .legal-contact-card {
        padding: 1.25rem;
    }
}