/* =========================================================================
   LEGAL PAGES - Terms & Privacy - Advanced Designer Layout
   ========================================================================= */

/* -------------------------------------------------------------------------
   HERO
   ------------------------------------------------------------------------- */
.legal-hero {
    position: relative;
    min-height: 38vh;
    display: flex;
    align-items: center;
    background: var(--bg-dark);
    overflow: hidden;
    padding: 100px 0 60px;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 25% 50%, rgba(255, 127, 80, 0.08) 0%, transparent 60%),
        radial-gradient(ellipse at 75% 30%, rgba(0, 100, 255, 0.04) 0%, transparent 50%);
    z-index: 0;
}

.legal-hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 127, 80, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 127, 80, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
}

.legal-hero-shape {
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 80px;
    background: #f5f7fa;
    clip-path: ellipse(60% 100% at 50% 100%);
    z-index: 1;
}

.legal-hero-badge {
    display: inline-block;
    background: rgba(255, 127, 80, 0.12);
    border: 1px solid rgba(255, 127, 80, 0.25);
    color: var(--brand-orange);
    padding: 6px 16px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 3px;
    border-radius: 4px;
    margin-bottom: 18px;
}

.legal-hero-title {
    font-size: clamp(2rem, 4vw, 3.2rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -1.5px;
    line-height: 1.1;
    margin-bottom: 12px;
}

.legal-hero-desc {
    font-size: 0.95rem;
    color: var(--text-gray);
    margin-bottom: 16px;
}

.legal-hero-desc strong {
    color: var(--brand-orange);
}

.legal-hero-meta {
    display: flex;
    gap: 20px;
}

.legal-hero-meta span {
    font-size: 0.8rem;
    color: var(--text-gray);
    display: flex;
    align-items: center;
    gap: 6px;
}

.legal-hero-meta i {
    color: var(--brand-orange);
    font-size: 0.75rem;
}

/* -------------------------------------------------------------------------
   MAIN CONTENT
   ------------------------------------------------------------------------- */
.legal-content {
    background: #f5f7fa;
    padding: 40px 0 100px;
}

/* --- TOC Sidebar --- */
.legal-toc {
    position: sticky;
    top: 100px;
}

.legal-toc h6 {
    color: #333;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.legal-toc ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.legal-toc li {
    margin-bottom: 2px;
}

.legal-toc a {
    display: block;
    padding: 8px 14px;
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.82rem;
    border-radius: 8px;
    border-left: 3px solid transparent;
    transition: all 0.25s ease;
}

.legal-toc a:hover {
    background: rgba(255, 127, 80, 0.04);
    color: #222;
    border-left-color: rgba(255, 127, 80, 0.3);
}

.legal-toc a.active {
    background: rgba(255, 127, 80, 0.08);
    color: var(--brand-orange);
    border-left-color: var(--brand-orange);
    font-weight: 600;
}

/* --- Body --- */
.legal-body {
    max-width: 820px;
}

.legal-section {
    margin-bottom: 56px;
    padding-top: 8px;
}

.legal-section-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(255, 127, 80, 0.1);
    color: var(--brand-orange);
    font-size: 0.85rem;
    font-weight: 800;
    font-family: monospace;
    margin-bottom: 14px;
}

.legal-section h2 {
    font-size: 1.5rem;
    font-weight: 800;
    color: #222;
    letter-spacing: -0.5px;
    margin-bottom: 16px;
}

.legal-section p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 0.92rem;
    margin-bottom: 14px;
}

.legal-list {
    list-style: none;
    padding: 0;
    margin: 0 0 16px;
}

.legal-list li {
    position: relative;
    padding: 8px 0 8px 24px;
    color: var(--text-gray);
    line-height: 1.7;
    font-size: 0.9rem;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 16px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-orange);
    opacity: 0.5;
}

.legal-list li strong {
    color: #333;
}

.legal-section a {
    color: var(--brand-orange);
    text-decoration: none;
}

.legal-section a:hover {
    text-decoration: underline;
}

/* --- Contact Card (Privacy) --- */
.legal-contact-card {
    background: #fff;
    border: 1px solid rgba(255, 127, 80, 0.1);
    border-radius: 14px;
    padding: 24px 28px;
    margin-top: 8px;
}

.legal-contact-card div {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: var(--text-gray);
    font-size: 0.9rem;
}

.legal-contact-card i {
    width: 20px;
    color: var(--brand-orange);
}

.legal-contact-card a {
    color: var(--text-gray);
}

.legal-contact-card a:hover {
    color: var(--brand-orange);
    text-decoration: none;
}

/* -------------------------------------------------------------------------
   RESPONSIVE
   ------------------------------------------------------------------------- */
@media (max-width: 991px) {
    .legal-toc {
        position: static;
        margin-bottom: 40px;
    }
    .legal-toc ul {
        display: flex;
        flex-wrap: wrap;
        gap: 4px;
    }
    .legal-toc li {
        margin: 0;
    }
    .legal-toc a {
        padding: 6px 12px;
        font-size: 0.78rem;
        border-left: none;
        border: 1px solid rgba(0,0,0,0.06);
        border-radius: 20px;
    }
    .legal-toc a.active {
        border-left: none;
        border-color: rgba(255, 127, 80, 0.3);
    }
}

@media (max-width: 576px) {
    .legal-hero {
        min-height: 30vh;
        padding: 80px 0 40px;
    }
    .legal-hero-title {
        font-size: 1.8rem;
    }
    .legal-section h2 {
        font-size: 1.25rem;
    }
    .legal-contact-card {
        padding: 18px 20px;
    }
}
