/* ============================================
   Legal Page Template Styles
   ============================================ */

/* Dark background for the entire page */
.legal-page {
    background: var(--color-dark);
}

/* ---- Hero Banner ---- */
.legal-hero {
    position: relative;
    min-height: 220px;
    display: flex;
    align-items: center;
    background: var(--color-navy);
    overflow: hidden;
    margin-top: var(--header-height);
}

.legal-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 107, 0, 0.08) 0%, transparent 60%);
    z-index: 1;
}

.legal-hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 60px 20px 40px;
}

.legal-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--color-white);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.legal-date {
    font-size: 15px;
    color: var(--color-gray);
    font-weight: 400;
}

/* ---- Content Area ---- */
.legal-content-wrap {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 20px 80px;
    text-align: left;
}

.legal-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-white);
    margin-top: 48px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--color-primary);
}

.legal-content h2:first-child {
    margin-top: 0;
}

.legal-content h3 {
    font-size: 19px;
    font-weight: 600;
    color: var(--color-white);
    margin-top: 32px;
    margin-bottom: 12px;
}

.legal-content h4 {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 24px;
    margin-bottom: 8px;
}

.legal-content p {
    font-size: 15px;
    line-height: 1.8;
    color: var(--color-gray);
    margin-bottom: 16px;
}

/* Restore list-style (theme resets it) */
.legal-content ul,
.legal-content ol {
    margin: 0 0 20px 24px;
    color: var(--color-gray);
    font-size: 15px;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
}

.legal-content ol {
    list-style: decimal;
}

.legal-content li {
    margin-bottom: 6px;
}

.legal-content ul ul,
.legal-content ol ol,
.legal-content ul ol,
.legal-content ol ul {
    margin-top: 6px;
    margin-bottom: 6px;
}

/* Links */
.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.3s ease;
}

.legal-content a:hover {
    color: #ff8c3a;
}

/* Blockquotes */
.legal-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 12px 20px;
    margin: 20px 0;
    background: rgba(255, 107, 0, 0.05);
    border-radius: 0 6px 6px 0;
}

.legal-content blockquote p {
    margin-bottom: 0;
}

/* Strong text */
.legal-content strong {
    color: var(--color-white);
    font-weight: 600;
}

/* ---- Responsive: 768px ---- */
@media (max-width: 768px) {
    .legal-hero {
        min-height: 180px;
    }

    .legal-hero-inner {
        padding: 50px 16px 32px;
    }

    .legal-title {
        font-size: 30px;
    }

    .legal-date {
        font-size: 14px;
    }

    .legal-content-wrap {
        padding: 40px 16px 60px;
    }

    .legal-content h2 {
        font-size: 21px;
        margin-top: 36px;
    }

    .legal-content h3 {
        font-size: 17px;
    }
}

/* ---- Responsive: 576px ---- */
@media (max-width: 576px) {
    .legal-hero {
        min-height: 150px;
    }

    .legal-hero-inner {
        padding: 40px 12px 24px;
    }

    .legal-title {
        font-size: 24px;
    }

    .legal-content-wrap {
        padding: 32px 12px 48px;
    }

    .legal-content h2 {
        font-size: 19px;
        margin-top: 28px;
    }

    .legal-content p,
    .legal-content ul,
    .legal-content ol {
        font-size: 14px;
    }
}

/* ---- Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
    .legal-content a {
        transition: none;
    }
}
