/* =====================================================================
   MyErha Wedding Content Creator
   Gaya halaman Ketentuan Layanan
   ---------------------------------------------------------------------
   Memakai token warna, tipografi, dan komponen dari style.css serta
   pages.css. Fokus: pembuka, daftar isi, kartu ketentuan, dan penutup.
   ===================================================================== */

/* ---------------------------------------------------------------------
   1. Pembuka halaman
   --------------------------------------------------------------------- */
.terms-hero {
    padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(4rem, 8vw, 7rem);
    background: var(--ivory);
}

.terms-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: center;
}

.terms-hero__copy {
    min-width: 0;
    max-width: 680px;
}

.terms-hero .inner-title {
    max-width: 10ch;
}

.terms-hero .lead {
    max-width: 38ch;
}

.terms-index {
    justify-self: end;
    width: 100%;
    max-width: 430px;
    padding: clamp(1.5rem, 3vw, 2.75rem);
    background: var(--navy);
    color: var(--ivory);
}

.terms-index h2 {
    color: var(--ivory);
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 2.5vw, 1.9rem);
    font-weight: 400;
    line-height: 1.1;
}

.terms-index__list {
    margin-top: 1.15rem;
}

.terms-index__list li + li {
    border-top: 1px solid rgba(200, 169, 106, 0.22);
}

.terms-index__link {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem 0;
    color: var(--ivory);
    text-decoration: none;
    transition: color 0.25s var(--ease);
}

.terms-index__link:hover {
    color: var(--champagne-soft);
}

.terms-index__title {
    font-size: 15px;
    line-height: 1.4;
}

.terms-index__count {
    flex: 0 0 auto;
    color: rgba(248, 244, 236, 0.64);
    font-size: 12px;
    line-height: 1.4;
}

.terms-index__note {
    margin-top: 1.25rem;
    color: rgba(248, 244, 236, 0.64);
    font-size: 12px;
    line-height: 1.6;
}

.terms-index__empty {
    margin-top: 1rem;
    color: rgba(248, 244, 236, 0.72);
    font-size: 15px;
    line-height: 1.65;
}

.terms-index .text-link {
    margin-top: 1.2rem;
    color: var(--champagne-soft);
    text-decoration-color: var(--champagne);
}

.terms-index .text-link:hover {
    color: var(--ivory);
    text-decoration-color: var(--ivory);
}

/* ---------------------------------------------------------------------
   2. Daftar ketentuan
   --------------------------------------------------------------------- */
.terms-section {
    background: var(--ivory-2);
}

.terms-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: stretch;
}

.term-card {
    display: flex;
    min-width: 0;
    padding: clamp(1.75rem, 3.5vw, 3rem);
    flex-direction: column;
    background: var(--ivory);
    scroll-margin-top: 110px;
}

.term-card--pembayaran {
    background: var(--navy);
}

.term-card--pengiriman {
    background: var(--ivory);
}

.term-card--pembatalan {
    background: var(--champagne-wash);
}

.term-card--transportasi {
    background: var(--dusty-deep);
}

.term-card--lainnya {
    grid-column: 1 / -1;
    background: var(--ivory);
}

.term-card:only-child {
    grid-column: 1 / -1;
}

.term-card--dark {
    color: var(--ivory);
}

.term-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 1.5rem;
}

.term-card__icon {
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    color: var(--champagne);
}

.term-card__icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.term-card--pembatalan .term-card__icon {
    color: var(--dusty-deep);
}

.term-card--dark .term-card__icon {
    color: var(--champagne-soft);
}

.term-card h2 {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.term-card--dark h2 {
    color: var(--ivory);
}

.term-list {
    display: grid;
    gap: 0.95rem;
}

.term-list li {
    position: relative;
    padding-left: 20px;
    color: var(--ink-soft);
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.term-list li::before {
    content: "";
    position: absolute;
    top: 0.64em;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--champagne);
}

.term-card--pembatalan .term-list li::before {
    background: var(--dusty-deep);
}

.term-card--dark .term-list li {
    color: rgba(248, 244, 236, 0.82);
}

/* ---------------------------------------------------------------------
   3. Keadaan kosong
   --------------------------------------------------------------------- */
.terms-empty {
    max-width: 720px;
    padding: clamp(2rem, 5vw, 3.5rem);
    background: var(--ivory);
}

.terms-empty h2 {
    color: var(--navy);
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.05;
}

.terms-empty p {
    max-width: 54ch;
    margin-top: 0.9rem;
    color: var(--ink-soft);
    font-size: 16px;
    line-height: 1.7;
}

.terms-empty .btn {
    margin-top: 1.5rem;
}

/* ---------------------------------------------------------------------
   4. Responsif
   --------------------------------------------------------------------- */
@media (max-width: 960px) {
    .terms-hero__grid {
        grid-template-columns: 1fr;
        gap: clamp(2rem, 5vw, 3rem);
    }

    .terms-index {
        justify-self: start;
        max-width: 560px;
    }

    .terms-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .terms-hero {
        padding-top: 2.5rem;
    }

    .terms-hero .inner-title {
        font-size: clamp(2.8rem, 12vw, 4.2rem);
    }

    .terms-index {
        padding: 1.5rem;
    }

    .term-card {
        padding: 1.5rem;
    }

    .term-card__head {
        margin-bottom: 1.1rem;
    }
}
