/* =====================================================
   Sahalat — Legal Pages (Privacy Policy & Terms)
   ===================================================== */

/* ── Hero ─────────────────────────────────────────── */
.legal-hero-bg {
    background: linear-gradient(180deg, #ddf0e5 0%, #ffffff 100%);
    padding: 60px 0 70px;
}

.legal-label {
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 40px;
}

.legal-label .line {
    width: 24px;
    height: 2px;
    background-color: #0b6b5b;
}

.legal-label .label-text {
    font-size: 16px;
    color: #04533E;
}

.legal-hero-text {
    text-align: center;
    max-width: 780px;
    margin: 0 auto;
}

.legal-hero-title {
    font-size: 46px;
    font-weight: 700;
    color: #121212;
    line-height: 1.2;
    margin-bottom: 6px;
    font-family: 'Mona Sans', sans-serif;
}

.legal-hero-title span {
    font-weight: 400;
    display: block;
    color: #04533E;
}

.legal-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legal-hero-meta .meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ffffff;
    border: 1px solid #c8e8d8;
    border-radius: 50px;
    padding: 6px 16px;
    font-size: 13px;
    color: #3d5247;
    font-family: 'Inter', sans-serif;
}

.legal-hero-meta .meta-chip i {
    font-size: 14px;
    color: #0c8b51;
}

/* ── Page Layout: TOC sidebar + content ───────────── */
.legal-body {
    padding: 60px 0 80px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 48px;
    align-items: start;
}

/* Sticky Table of Contents */
.legal-toc {
    position: sticky;
    top: 90px;
    background: #f8fdf9;
    border: 1px solid #d4edde;
    border-radius: 16px;
    padding: 24px 20px;
}

.legal-toc-title {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #04533E;
    margin-bottom: 16px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
}

.legal-toc-title i {
    font-size: 14px;
}

.legal-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.legal-toc-list a {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    font-size: 13px;
    color: #5f6368;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    line-height: 1.4;
    transition: background 0.2s, color 0.2s;
}

.legal-toc-list a:hover,
.legal-toc-list a.active {
    background: #e8f5ed;
    color: #04533E;
}

.legal-toc-list a .toc-num {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    border-radius: 4px;
    background: #d4edde;
    color: #04533E;
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
    transition: background 0.2s;
}

.legal-toc-list a:hover .toc-num,
.legal-toc-list a.active .toc-num {
    background: #04533E;
    color: #fff;
}

/* Main Content */
.legal-content {
    min-width: 0;
}

.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid #eef4f1;
}

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

.legal-section-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 20px;
}

.legal-section-num {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #e8f5ed;
    color: #04533E;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    margin-top: 3px;
}

.legal-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #121212;
    margin: 0;
    line-height: 1.3;
    font-family: 'Mona Sans', sans-serif;
}

.legal-section p {
    font-size: 15px;
    color: #3d5247;
    line-height: 1.85;
    margin-bottom: 14px;
    font-family: 'Inter', sans-serif;
}

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

/* Highlight box */
.legal-highlight {
    background: #f0faf4;
    border-left: 4px solid #0c8b51;
    border-radius: 0 12px 12px 0;
    padding: 16px 20px;
    margin: 20px 0;
}

.legal-highlight p {
    margin: 0;
    font-size: 14px;
    color: #1a5c38;
}

/* Bullet list */
.legal-list {
    list-style: none;
    padding: 0;
    margin: 16px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.legal-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
    color: #3d5247;
    line-height: 1.7;
    font-family: 'Inter', sans-serif;
}

.legal-list li::before {
    content: '';
    flex-shrink: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #0c8b51;
    margin-top: 9px;
}

/* Two-column list */
.legal-list-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 24px;
    margin: 16px 0;
}

/* Data table */
.legal-data-table {
    width: 100%;
    border-collapse: collapse;
    border-radius: 12px;
    overflow: hidden;
    margin: 20px 0;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.legal-data-table thead th {
    background: #e8f5ed;
    color: #04533E;
    font-weight: 600;
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid #c8e8d8;
}

.legal-data-table tbody td {
    padding: 12px 16px;
    color: #3d5247;
    border-bottom: 1px solid #eef4f1;
    vertical-align: top;
}

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

.legal-data-table tbody tr:nth-child(even) td {
    background: #f8fdf9;
}

/* Contact box */
.legal-contact-box {
    background: linear-gradient(135deg, #04533E 0%, #0c8b51 100%);
    border-radius: 16px;
    padding: 32px;
    color: #fff;
    margin-top: 40px;
}

.legal-contact-box h4 {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Mona Sans', sans-serif;
}

.legal-contact-box p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 20px;
    font-family: 'Inter', sans-serif;
}

.legal-contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.legal-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: 14px;
    color: #fff;
    text-decoration: none;
    font-family: 'Inter', sans-serif;
    transition: background 0.2s;
}

.legal-contact-link:hover {
    background: rgba(255, 255, 255, 0.25);
    color: #fff;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 992px) {
    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-toc {
        position: static;
    }

    .legal-hero-title {
        font-size: 36px;
    }

    .legal-list-2col {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 576px) {
    .legal-hero-title {
        font-size: 28px;
    }

    .legal-hero-bg {
        padding: 40px 0 50px;
    }

    .legal-body {
        padding: 40px 0 60px;
    }

    .legal-section-title {
        font-size: 18px;
    }
}
