/*--------------------------------------------------------------
 * Legal Pages Styles (Terms & Conditions, Privacy Policy)
 * Shared styles for legal page templates.
 *
 * @package Thrive_Kids_GI_Care
 *--------------------------------------------------------------*/

@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');

/* ── Hero Section ────────────────────────────────────────────── */
.legal-hero {
    padding: 160px 24px 80px;
    text-align: center;
    background: linear-gradient(180deg, #f2f7ee 0%, #ffffff 100%);
    position: relative;
    overflow: hidden;
}

.legal-hero__inner {
    max-width: 680px;
    margin: 0 auto;
}

/* Badge */
.legal-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #276B5C;
    background-color: rgba(204, 255, 51, 0.25);
    padding: 8px 18px;
    border-radius: 50px;
    margin-bottom: 24px;
}

.legal-hero__badge svg {
    flex-shrink: 0;
    color: #276B5C;
}

/* Title */
.legal-hero__title {
    font-family: 'Lora', Georgia, 'Times New Roman', serif;
    font-size: clamp(2.2rem, 5vw, 3.4rem);
    font-weight: 400;
    line-height: 1.15;
    color: #1a1a1a;
    margin: 0 0 20px;
    letter-spacing: -0.02em;
}

.legal-hero__title em {
    font-style: italic;
    color: #1F4F46;
}

/* Subtitle */
.legal-hero__subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.7;
    color: #6b7b6b;
    max-width: 480px;
    margin: 0 auto 16px;
}

/* Last Updated Date */
.legal-hero__date {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 500;
    color: #9aaa9a;
    letter-spacing: 0.02em;
    margin: 0 auto 40px;
}

/* Divider */
.legal-hero__divider {
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, #1F4F46, #2F7D6B);
    margin: 0 auto;
}

/* ── Content Section ─────────────────────────────────────────── */
.legal-content {
    padding: 80px 24px 120px;
    background: #ffffff;
}

.legal-content__inner {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Intro block (no icon, full-width text) */
.legal-content__intro {
    padding: 28px;
    background: #f5faf0;
    border: 1px solid rgba(31, 79, 70, 0.08);
    border-radius: 16px;
    margin-bottom: 12px;
}

.legal-content__intro p {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.75;
    color: #6b7b6b;
    margin: 0 0 12px;
}

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

.legal-content__intro a {
    color: #2F7D6B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content__intro a:hover {
    color: #1F4F46;
}

/* Content block */
.legal-content__block {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 28px;
    background: #fafdf7;
    border: 1px solid rgba(31, 79, 70, 0.05);
    border-radius: 16px;
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.legal-content__block:hover {
    background: #f5faf0;
    box-shadow: 0 4px 20px rgba(31, 79, 70, 0.05);
}

/* Icon */
.legal-content__block-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(47, 125, 107, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2F7D6B;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Block body */
.legal-content__block-body {
    flex: 1;
    min-width: 0;
}

/* Heading */
.legal-content__heading {
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 12px;
    line-height: 1.3;
}

/* Subheading (e.g., A., B., C. or "How to Exercise") */
.legal-content__subheading {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 600;
    color: #2a3a2a;
    margin: 20px 0 8px;
    line-height: 1.4;
}

/* Text — support multiple paragraphs with spacing */
.legal-content__block-body p {
    font-family: 'Inter', sans-serif;
    font-size: 0.86rem;
    font-weight: 400;
    line-height: 1.75;
    color: #6b7b6b;
    margin: 0 0 10px;
}

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

/* Uppercase legal disclaimer text (warranties, liability) */
.legal-content__uppercase {
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.7;
    color: #7a8a7a;
    letter-spacing: 0.01em;
}

/* Links inside block body */
.legal-content__block-body a {
    color: #2F7D6B;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.legal-content__block-body a:hover {
    color: #1F4F46;
}

/* ── Lists ──────────────────────────────────────────────────── */
.legal-content__list {
    list-style: none;
    padding: 0;
    margin: 8px 0 12px;
}

.legal-content__list li {
    font-family: 'Inter', sans-serif;
    font-size: 0.84rem;
    line-height: 1.7;
    color: #6b7b6b;
    padding: 4px 0 4px 20px;
    position: relative;
}

.legal-content__list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #2F7D6B;
    opacity: 0.5;
}

/* Definition-style list (bold term + description) */
.legal-content__list--definitions li {
    padding: 6px 0 6px 20px;
}

.legal-content__list--definitions li strong {
    color: #2a3a2a;
    font-weight: 600;
}

/* ── Entity / Contact Block ─────────────────────────────────── */
.legal-content__entity {
    margin: 12px 0;
    padding: 16px 20px;
    background: rgba(47, 125, 107, 0.04);
    border-left: 3px solid #2F7D6B;
    border-radius: 0 10px 10px 0;
}

.legal-content__entity p {
    font-size: 0.84rem;
    line-height: 1.8;
    color: #4a5a4a;
    margin: 0;
}

.legal-content__entity strong {
    color: #1a2a1a;
    font-weight: 700;
}

.legal-content__entity a {
    color: #2F7D6B;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.legal-content__entity a:hover {
    color: #1F4F46;
}

/* ── Data Table (CCPA Disclosure) ────────────────────────────── */
.legal-content__table-wrap {
    overflow-x: auto;
    margin: 16px 0;
    border-radius: 12px;
    border: 1px solid rgba(31, 79, 70, 0.1);
}

.legal-content__table {
    width: 100%;
    border-collapse: collapse;
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
}

.legal-content__table thead {
    background: rgba(47, 125, 107, 0.08);
}

.legal-content__table th {
    font-weight: 600;
    color: #1a2a1a;
    text-align: left;
    padding: 12px 16px;
    border-bottom: 2px solid rgba(31, 79, 70, 0.12);
    white-space: nowrap;
}

.legal-content__table td {
    color: #6b7b6b;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(31, 79, 70, 0.06);
    vertical-align: top;
    line-height: 1.6;
}

.legal-content__table td strong {
    color: #2a3a2a;
    font-weight: 600;
}

.legal-content__table tbody tr:last-child td {
    border-bottom: none;
}

.legal-content__table tbody tr:hover {
    background: rgba(47, 125, 107, 0.03);
}

/* ── Applicable Law Footer ──────────────────────────────────── */
.legal-content__footer {
    margin-top: 24px;
    padding: 24px 28px;
    background: #f5f8f2;
    border-radius: 12px;
    border: 1px solid rgba(31, 79, 70, 0.06);
}

.legal-content__applicable-law {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 400;
    line-height: 1.8;
    color: #8a9a8a;
    margin: 0;
}

.legal-content__applicable-law strong {
    color: #5a6a5a;
    font-weight: 600;
}

/* ══════════════════════════════════════════════════════════════
   RESPONSIVE
   ══════════════════════════════════════════════════════════════ */

@media screen and (max-width: 768px) {
    .legal-hero {
        padding: 120px 20px 60px;
    }

    .legal-hero__title {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .legal-hero__subtitle {
        font-size: 0.9rem;
    }

    .legal-content {
        padding: 60px 20px 80px;
    }

    .legal-content__block {
        padding: 22px;
        gap: 16px;
    }

    .legal-content__intro {
        padding: 22px;
    }

    .legal-content__table th,
    .legal-content__table td {
        padding: 10px 12px;
        font-size: 0.78rem;
    }
}

@media screen and (max-width: 480px) {
    .legal-hero {
        padding: 100px 16px 48px;
    }

    .legal-hero__title {
        font-size: 1.8rem;
    }

    .legal-hero__badge {
        font-size: 0.7rem;
        padding: 6px 14px;
    }

    .legal-hero__subtitle {
        font-size: 0.86rem;
        margin-bottom: 12px;
    }

    .legal-hero__date {
        font-size: 0.75rem;
        margin-bottom: 32px;
    }

    .legal-content {
        padding: 48px 16px 64px;
    }

    .legal-content__inner {
        gap: 10px;
    }

    .legal-content__block {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
        border-radius: 14px;
    }

    .legal-content__intro {
        padding: 20px;
        border-radius: 14px;
    }

    .legal-content__block-icon {
        width: 38px;
        height: 38px;
        border-radius: 10px;
    }

    .legal-content__heading {
        font-size: 0.88rem;
    }

    .legal-content__subheading {
        font-size: 0.84rem;
    }

    .legal-content__block-body p {
        font-size: 0.84rem;
    }

    .legal-content__list li {
        font-size: 0.82rem;
    }

    .legal-content__table-wrap {
        margin: 12px -4px;
        border-radius: 10px;
    }

    .legal-content__table th,
    .legal-content__table td {
        padding: 8px 10px;
        font-size: 0.76rem;
    }

    .legal-content__footer {
        padding: 20px;
        border-radius: 10px;
    }

    .legal-content__applicable-law {
        font-size: 0.72rem;
    }
}
