/* ═══════════════════════════════════════
   LEGAL PAGES — Rebhni Design System v2
   Terms, Refund, Cookie, License
   ═══════════════════════════════════════ */

/* --- Legal Hero --- */
.legal-hero {
    padding-top: 100px;
    text-align: center;
}

/* --- Last Updated Badge --- */
.legal-update {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(13, 148, 136, 0.12);
    color: var(--teal-light);
    font-family: var(--font-body);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 8px 20px;
    border-radius: 100px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}

.section-light .legal-update {
    background: rgba(13, 148, 136, 0.08);
    color: var(--teal);
}

/* --- Legal Sections --- */
.legal-section {
    margin-bottom: 48px;
}

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

/* --- Legal Heading (h2) --- */
.legal-heading {
    font-family: var(--font-heading);
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--charcoal);
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid rgba(13, 148, 136, 0.15);
    line-height: 1.35;
}

/* RTL: teal accent on the right side */
[dir="rtl"] .legal-heading,
.legal-heading[dir="rtl"] {
    border-bottom: none;
    border-right: 4px solid var(--teal);
    padding-right: 16px;
    padding-bottom: 0;
}

/* LTR: teal accent on the left side */
[dir="ltr"] .legal-heading,
html:not([dir="rtl"]) .legal-heading {
    border-bottom: none;
    border-left: 4px solid var(--teal);
    padding-left: 16px;
    padding-bottom: 0;
}

/* --- Legal Subheading (h3) --- */
.legal-subheading {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--charcoal);
    margin-top: 32px;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* --- Legal Text (paragraphs) --- */
.legal-text {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: 16px;
}

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

.legal-text a {
    color: var(--teal);
    font-weight: 500;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-text a:hover {
    color: var(--teal-dark, #0A7A70);
}

/* --- Legal Lists --- */
.legal-list {
    font-family: var(--font-body);
    font-size: 1.05rem;
    color: var(--gray-700);
    line-height: 1.85;
    margin-bottom: 20px;
    padding-left: 24px;
}

[dir="rtl"] .legal-list {
    padding-left: 0;
    padding-right: 24px;
}

.legal-list li {
    margin-bottom: 10px;
    padding-left: 4px;
}

[dir="rtl"] .legal-list li {
    padding-left: 0;
    padding-right: 4px;
}

.legal-list li:last-child {
    margin-bottom: 0;
}

/* Ordered list: teal counters */
ol.legal-list {
    list-style: none;
    counter-reset: legal-counter;
    padding-left: 0;
}

[dir="rtl"] ol.legal-list {
    padding-right: 0;
}

ol.legal-list li {
    counter-increment: legal-counter;
    padding-left: 36px;
    position: relative;
}

[dir="rtl"] ol.legal-list li {
    padding-left: 0;
    padding-right: 36px;
}

ol.legal-list li::before {
    content: counter(legal-counter) ".";
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 700;
    color: var(--teal);
    font-size: 1rem;
    min-width: 28px;
}

[dir="rtl"] ol.legal-list li::before {
    left: auto;
    right: 0;
}

/* Unordered list: teal bullet */
ul.legal-list {
    list-style: none;
}

ul.legal-list li {
    padding-left: 24px;
    position: relative;
}

[dir="rtl"] ul.legal-list li {
    padding-left: 0;
    padding-right: 24px;
}

ul.legal-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 12px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
}

[dir="rtl"] ul.legal-list li::before {
    left: auto;
    right: 0;
}

/* --- Legal Highlight Box --- */
.legal-highlight {
    background: rgba(13, 148, 136, 0.06);
    border: 1px solid rgba(13, 148, 136, 0.18);
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 24px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-700);
    line-height: 1.8;
}

.legal-highlight strong {
    color: var(--charcoal);
    font-weight: 700;
}

.legal-highlight p {
    margin-bottom: 8px;
}

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

/* --- Content area top spacing --- */
.legal-content {
    padding-top: 64px;
    padding-bottom: 80px;
}

/* --- Responsive: Mobile (768px) --- */
@media (max-width: 768px) {
    .legal-hero {
        padding-top: 80px;
    }

    .legal-content {
        padding-top: 40px;
        padding-bottom: 56px;
    }

    .legal-update {
        font-size: 0.8rem;
        padding: 6px 16px;
    }

    .legal-section {
        margin-bottom: 36px;
    }

    .legal-heading {
        font-size: 1.35rem;
        margin-bottom: 16px;
    }

    .legal-subheading {
        font-size: 1.1rem;
        margin-top: 24px;
        margin-bottom: 10px;
    }

    .legal-text {
        font-size: 0.95rem;
        line-height: 1.75;
    }

    .legal-list {
        font-size: 0.95rem;
        line-height: 1.75;
        padding-left: 16px;
    }

    [dir="rtl"] .legal-list {
        padding-left: 0;
        padding-right: 16px;
    }

    ol.legal-list li {
        padding-left: 28px;
    }

    [dir="rtl"] ol.legal-list li {
        padding-left: 0;
        padding-right: 28px;
    }

    .legal-highlight {
        padding: 20px;
        border-radius: 10px;
        font-size: 0.93rem;
    }
}
