/* =====================================================
   LEGAL PAGES CSS — Privacy Policy & Terms and Conditions
   Used by: privacy-policy.php, terms-and-conditions.php
   ===================================================== */

/* ---------- Hero Banner ---------- */
.legal-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.legal-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.legal-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(170, 35, 64, 0.92) 0%, rgba(170, 35, 64, 0.78) 55%, rgba(170, 35, 64, 0.55) 100%);
    z-index: 1;
}

.legal-hero__content {
    position: relative;
    z-index: 2;
    padding: 70px 20px;
    color: #fff;
    max-width: 720px;
}

.legal-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    padding: 6px 16px;
    border-radius: 30px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.legal-hero h1 {
    font-size: 2.6rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.legal-hero p {
    font-size: 1.05rem;
    line-height: 1.7;
    opacity: 0.95;
    margin-bottom: 0;
}

/* ---------- Breadcrumb ---------- */
.legal-breadcrumb {
    background: #faf5f6;
    padding: 12px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0d6dc;
}

.legal-breadcrumb a {
    color: #888;
    text-decoration: none;
}

.legal-breadcrumb a:hover {
    color: var(--primary-color, #aa2340);
}

.legal-breadcrumb i {
    font-size: 0.7rem;
    margin: 0 8px;
    color: #bbb;
}

.legal-breadcrumb span {
    color: var(--primary-color, #aa2340);
    font-weight: 600;
}

/* ---------- Page Wrapper ---------- */
.legal-page {
    padding: 50px 0 80px;
    background: #fff;
}

.legal-page .container {
    max-width: 980px;
}

.legal-intro-row {
    text-align: center;
    margin-bottom: 30px;
}

.legal-page .last-updated {
    display: inline-flex;
    align-items: center;
    font-size: 0.88rem;
    color: #999;
    font-style: italic;
    background: #faf5f6;
    padding: 6px 16px;
    border-radius: 20px;
}

/* ---------- TOC Icon Grid ---------- */
.toc-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-bottom: 55px;
}

.toc-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    background: #faf5f6;
    border: 1px solid #f0d6dc;
    border-radius: 10px;
    padding: 18px 16px;
    text-decoration: none;
    color: #3a3a3a;
    position: relative;
    transition: all 0.25s ease;
}

.toc-card:hover {
    background: var(--primary-color, #aa2340);
    border-color: var(--primary-color, #aa2340);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(170, 35, 64, 0.18);
}

.toc-card__num {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.4;
}

.toc-card i {
    font-size: 1.4rem;
    color: var(--primary-color, #aa2340);
    transition: color 0.25s ease;
}

.toc-card:hover i {
    color: #fff;
}

.toc-card span:last-child {
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.3;
}

.toc-card--highlight {
    background: #fdeef1;
    border-color: var(--primary-color, #aa2340);
}

/* ---------- Section Blocks ---------- */
.legal-section {
    display: flex;
    gap: 24px;
    padding: 38px 0;
    border-bottom: 1px solid #f0e4e7;
    scroll-margin-top: 90px;
}

.legal-section--alt {
    background: #fcf8f9;
    margin: 0 -20px;
    padding: 38px 20px;
    border-radius: 12px;
    border-bottom: none;
}

.legal-section--featured {
    background: linear-gradient(135deg, #fdeef1 0%, #faf5f6 100%);
    margin: 0 -20px;
    padding: 40px 24px;
    border-radius: 14px;
    border: 1px solid #f0d6dc;
    border-bottom: 1px solid #f0d6dc;
}

.legal-section__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--primary-color, #aa2340);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    color: var(--primary-color, #aa2340);
}

.legal-section--featured .legal-section__icon {
    background: var(--primary-color, #aa2340);
    color: #fff;
}

.legal-section__body {
    flex: 1;
    min-width: 0;
    color: #4a4a4a;
    line-height: 1.85;
}

.legal-section__body h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--primary-color, #aa2340);
    margin-bottom: 14px;
}

.legal-section__body p {
    margin-bottom: 16px;
    font-size: 1rem;
}

.legal-section__body p:last-child {
    margin-bottom: 0;
}

.legal-section__body ul {
    margin-bottom: 16px;
    padding-left: 22px;
}

.legal-section__body ul li {
    margin-bottom: 8px;
}

.legal-section__body a {
    color: var(--primary-color, #aa2340);
    font-weight: 600;
    text-decoration: underline;
}

/* ---------- Highlight Box (Cancellation Clause) ---------- */
.highlight-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #fff;
    border-left: 4px solid var(--primary-color, #aa2340);
    padding: 18px 22px;
    border-radius: 8px;
    margin-bottom: 22px;
    box-shadow: 0 4px 14px rgba(170, 35, 64, 0.08);
}

.highlight-box i {
    color: var(--primary-color, #aa2340);
    font-size: 1.3rem;
    margin-top: 3px;
}

.highlight-box p {
    margin-bottom: 0;
    font-weight: 500;
}

/* ---------- Contact Mini Cards ---------- */
.contact-mini-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 18px;
}

.contact-mini-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #fff;
    border: 1px solid #f0d6dc;
    border-radius: 10px;
    padding: 14px 18px;
}

.contact-mini-card i {
    color: var(--primary-color, #aa2340);
    font-size: 1.15rem;
    width: 22px;
    text-align: center;
    flex-shrink: 0;
}

.contact-mini-card a {
    color: var(--primary-color, #aa2340);
    font-weight: 600;
    text-decoration: none;
}

.contact-mini-card a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 992px) {
    .toc-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .legal-hero {
        min-height: 260px;
    }
    .legal-hero h1 {
        font-size: 2rem;
    }
    .legal-hero p {
        font-size: 0.95rem;
    }
    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .legal-section {
        flex-direction: column;
        gap: 14px;
        padding: 28px 0;
    }
    .legal-section--alt,
    .legal-section--featured {
        margin: 0 -15px;
        padding: 28px 15px;
    }
}

@media (max-width: 480px) {
    .legal-hero__content {
        padding: 45px 15px;
    }
    .legal-hero h1 {
        font-size: 1.6rem;
    }
    .toc-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .toc-card {
        padding: 14px 12px;
    }
    .legal-section__body h2 {
        font-size: 1.15rem;
    }
}
