/* ============================================================
   TERMS & CONDITIONS PAGE
   ============================================================ */

/* ── Hero ── */
.terms-hero {
    padding-top: 148px;
    padding-bottom: 48px;
    max-width: 820px;
}

.terms-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 999px;
    background: var(--card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border);
    font-weight: 700;
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--primary);
    margin-bottom: 24px;
}

.terms-tag::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0.8;
}

.terms-heading {
    font-size: clamp(2.6rem, 5vw, 4.4rem);
    font-weight: 900;
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 20px;
    color: var(--text);
}

.terms-meta {
    display: inline-flex;
    align-items: center;
    font-size: 0.82rem;
    color: var(--light);
    font-weight: 600;
    margin-bottom: 20px;
    padding: 6px 14px;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 8px;
    backdrop-filter: blur(12px);
}

.terms-sub {
    font-size: 1.05rem;
    color: var(--light);
    line-height: 1.85;
    max-width: 680px;
}

/* ── Notice banner ── */
.terms-notice-wrap {
    max-width: 860px;
    margin: 0 auto;
    padding-bottom: 32px;
}

.terms-notice {
    padding: 20px 24px;
    border-radius: 16px;
    background: linear-gradient(130deg, var(--primary) 0%, var(--secondary) 100%);
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.7;
    box-shadow: 0 4px 28px -4px rgba(0,0,0,0.18);
}

/* ── Body wrapper ── */
.terms-body {
    padding-bottom: 120px;
    max-width: 860px;
    margin: 0 auto;
}

/* ── Main card ── */
.terms-card {
    background: var(--card);
    backdrop-filter: blur(32px);
    -webkit-backdrop-filter: blur(32px);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: clamp(32px, 6vw, 64px);
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Individual section ── */
.terms-section {
    padding: 36px 0;
    border-bottom: 1px solid var(--border);
}

.terms-section:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.terms-section h2 {
    font-size: 1.18rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 16px;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 12px;
    line-height: 1.3;
}

.terms-section h2::before {
    content: '';
    display: inline-block;
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--secondary));
    flex-shrink: 0;
}

.terms-section h3 {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin: 24px 0 12px;
    color: var(--primary);
    opacity: 0.85;
}

.terms-section p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.9;
    margin-bottom: 10px;
}

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

.terms-section strong {
    color: var(--text);
    font-weight: 700;
}

/* ── Lists ── */
.terms-section ul {
    padding-left: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 14px;
}

.terms-section ul li {
    font-size: 0.94rem;
    color: var(--light);
    line-height: 1.7;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.terms-section ul li::before {
    content: '–';
    color: var(--primary);
    font-weight: 700;
    flex-shrink: 0;
    opacity: 0.7;
    margin-top: 1px;
}

/* ── Cancellation policy grid ── */
.terms-policy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin: 16px 0 24px;
}

.terms-policy-item {
    padding: 18px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.policy-label {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.policy-desc {
    font-size: 0.88rem;
    color: var(--light);
    line-height: 1.65;
}

.terms-policy-green {
    background: rgba(34, 197, 94, 0.07);
    border-color: rgba(34, 197, 94, 0.25);
}
.terms-policy-green .policy-label { color: #16a34a; }

.terms-policy-amber {
    background: rgba(234, 179, 8, 0.07);
    border-color: rgba(234, 179, 8, 0.25);
}
.terms-policy-amber .policy-label { color: #b45309; }

.terms-policy-red {
    background: rgba(239, 68, 68, 0.07);
    border-color: rgba(239, 68, 68, 0.22);
}
.terms-policy-red .policy-label { color: #dc2626; }

/* ── Promise / commitment block ── */
.terms-promise {
    margin-top: 44px;
    padding: 36px 32px;
    border-radius: 16px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
}

.terms-promise::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 80px; height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.terms-promise h3 {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
    color: var(--text);
}

.terms-promise p {
    font-size: 0.95rem;
    color: var(--light);
    line-height: 1.9;
    margin-bottom: 8px;
}

.terms-promise p:last-child { margin-bottom: 0; }

.terms-promise strong {
    color: var(--text);
    font-weight: 700;
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .terms-policy-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .terms-hero {
        padding-top: 100px;
        padding-bottom: 36px;
    }

    .terms-card {
        padding: 24px 20px;
        border-radius: 18px;
    }

    .terms-section {
        padding: 28px 0;
    }

    .terms-notice {
        font-size: 0.88rem;
        padding: 16px 18px;
    }

    .terms-promise {
        padding: 24px 20px;
    }
}