/**
 * ============================================================================
 * WE SEKARIANS — TERMS AND CONDITIONS
 * ============================================================================
 *
 * Page-specific styling.
 * ============================================================================
 */

.terms-hero {
    padding: 76px 0 68px;
    background: linear-gradient(125deg, #102b46, #174f69);
    color: #fff;
}

.terms-hero__content {
    max-width: 850px;
}

.terms-eyebrow {
    display: inline-block;
    margin-bottom: 15px;
    color: #a9d9e8;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .16em;
}

.terms-hero h1 {
    margin: 0 0 18px;
    font-size: clamp(2.2rem, 5vw, 3.7rem);
    font-weight: 800;
    line-height: 1.12;
}

.terms-hero h1 span {
    color: #8ed4e6;
}

.terms-hero__content > p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .88);
    font-size: 1.08rem;
    line-height: 1.75;
}

.terms-hero__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 25px;
    color: rgba(255, 255, 255, .78);
    font-size: .88rem;
}

.terms-hero__meta i {
    margin-right: 6px;
    color: #a9d9e8;
}

.terms-content {
    padding-top: 55px;
    padding-bottom: 75px;
}

.terms-notice {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 38px;
    padding: 20px 22px;
    border: 1px solid #d7a84a;
    border-left: 5px solid #d7a84a;
    border-radius: 10px;
    background: rgba(215, 168, 74, .09);
}

.terms-notice > i {
    margin-top: 2px;
    color: #b17b16;
    font-size: 1.35rem;
}

.terms-notice strong {
    display: block;
    margin-bottom: 5px;
    color: var(--heading-color, #263746);
}

.terms-notice p {
    margin: 0;
    color: var(--default-color, #444);
    line-height: 1.7;
}

.terms-layout {
    display: grid;
    grid-template-columns: 255px minmax(0, 1fr);
    align-items: start;
    gap: 38px;
}

.terms-toc {
    position: sticky;
    top: 110px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 20px;
    border: 1px solid var(--border-color, #dce2e8);
    border-radius: 12px;
    background: var(--surface-color, #fff);
}

.terms-toc h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
    font-weight: 750;
}

.terms-toc a {
    padding: 7px 9px;
    border-radius: 6px;
    color: var(--default-color, #444);
    font-size: .86rem;
    line-height: 1.45;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
    background: rgba(20, 112, 145, .1);
    color: var(--accent-color, #147091);
}

.terms-article {
    min-width: 0;
}

.terms-section {
    position: relative;
    scroll-margin-top: 105px;
    margin-bottom: 30px;
    padding: 25px 27px;
    border: 1px solid var(--border-color, #dce2e8);
    border-radius: 12px;
    background: var(--surface-color, #fff);
}

.terms-section__number {
    display: inline-block;
    margin-bottom: 9px;
    color: var(--accent-color, #147091);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
}

.terms-section h2 {
    margin: 0 0 15px;
    color: var(--heading-color, #263746);
    font-size: 1.3rem;
    font-weight: 750;
}

.terms-section p,
.terms-section li {
    color: var(--default-color, #444);
    font-size: .96rem;
    line-height: 1.8;
}

.terms-section p:last-child {
    margin-bottom: 0;
}

.terms-section ul {
    padding-left: 22px;
}

.terms-section li {
    margin-bottom: 7px;
}

.terms-section a {
    color: var(--accent-color, #147091);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.terms-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: 15px;
    text-decoration: none !important;
}

.terms-endnote {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 22px 25px;
    border: 1px solid var(--border-color, #dce2e8);
    border-radius: 12px;
    background: rgba(20, 112, 145, .06);
}

.terms-endnote > i {
    color: var(--accent-color, #147091);
    font-size: 1.4rem;
}

.terms-endnote p {
    margin: 0;
    color: var(--default-color, #444);
    line-height: 1.75;
}

[data-bs-theme="dark"] .terms-notice {
    background: rgba(215, 168, 74, .08);
}

[data-bs-theme="dark"] .terms-notice strong {
    color: var(--heading-color, #fff);
}

[data-bs-theme="dark"] .terms-notice > i {
    color: #e4bd69;
}

@media (max-width: 991.98px) {
    .terms-layout {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .terms-toc {
        position: static;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-toc h2 {
        grid-column: 1 / -1;
    }
}

@media (max-width: 575.98px) {
    .terms-hero {
        padding: 55px 0 48px;
    }

    .terms-content {
        padding-top: 35px;
        padding-bottom: 50px;
    }

    .terms-notice {
        gap: 11px;
        padding: 16px;
    }

    .terms-toc {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .terms-section {
        margin-bottom: 20px;
        padding: 20px 18px;
    }

    .terms-section h2 {
        font-size: 1.15rem;
    }

    .terms-section p,
    .terms-section li {
        font-size: .92rem;
    }

    .terms-endnote {
        padding: 18px;
    }
}