/* ==========================================================================
   privacy.css - Terms of Use page (/terms).
   Figma: desktop 385:510, mobile 385:728 (see docs/figma/README.md).
   Same layout rules as privacy.css and refund-policy.css.
   ========================================================================== */

.terms-page-v2 {
    background: #fbfcfe;
}

/* ---------- Hero ---------- */
.terms-page-v2 .hero-section.terms-hero-figma {
    min-height: 456px;
    width: calc(100% - 40px);
    height: auto;
    max-width: 1880px;
    margin: 20px auto 0;
    padding: 176px 20px 116px;
    border-radius: 32px;
    background: linear-gradient(155.8deg, #3760D6 6.71%, #6E6FDC 37.32%, #A283D4 59.76%, #E2A4CB 80.16%, #FBEEDD 108.73%) !important;
}
.terms-hero-figma .terms-hero-inner {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: center;
    color: #fff;
}
.terms-page-v2 .terms-hero-figma h1 {
    margin: 0;
    padding: 0;
    font-size: 48px;
    line-height: 52px;
    font-weight: 700;
    color: #fff;
}
.terms-hero-figma p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #fff;
}

/* ---------- Bands ---------- */
.terms-page-v2 .terms-band {
    padding: 80px 0;
}
.terms-page-v2 .terms-band-muted {
    background: #f3f6fa;
}
.terms-page-v2 .terms-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- Prose (headings + paragraphs) ---------- */
.terms-page-v2 .terms-prose h2 {
    margin: 30px 0 12px;
    font-size: 24px;
    line-height: 30px;
    font-weight: 700;
    color: #071a31;
}
.terms-page-v2 .terms-prose h2:first-child {
    margin-top: 0;
}
.terms-page-v2 .terms-prose h3 {
    margin: 16px 0 12px;
    font-size: 20px;
    line-height: 26px;
    font-weight: 600;
    color: #071a31;
}
.terms-page-v2 .terms-prose h2 + p + h3 {
    margin-top: 20px;
}
.terms-page-v2 .terms-prose p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: #455365;
}
.terms-page-v2 .terms-prose p + p {
    margin-top: 8px;
}

/* ---------- Muted section head + cards ---------- */
.terms-page-v2 .terms-section-head {
    max-width: 840px;
    margin: 0 auto 40px;
    text-align: center;
}
.terms-page-v2 .terms-section-head h2 {
    margin: 0 0 10px;
    font-size: 36px;
    line-height: 46px;
    font-weight: 700;
    color: #071a31;
}
.terms-page-v2 .terms-section-head p {
    margin: 0;
    font-size: 16px;
    line-height: 24px;
    font-weight: 500;
    color: #455365;
}
.terms-page-v2 .terms-grid-2 {
    display: grid;
    gap: 20px;
}
.terms-page-v2 .terms-grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.terms-page-v2 .terms-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 30px;
    background: #fff;
    border-radius: 20px;
}
.terms-page-v2 .terms-card-icon {
    display: block;
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
}
.terms-page-v2 .terms-card-icon img {
    display: block;
    width: 48px;
    height: 48px;
}
.terms-page-v2 .terms-card h3 {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 24px;
    font-weight: 700;
    color: #071a31;
}
.terms-page-v2 .terms-card p {
    margin: 0;
    font-size: 14px;
    line-height: 22px;
    font-weight: 400;
    color: #455365;
}

/* ---------- Terms extras: bullet list, link, multi-paragraph cards ---------- */
.terms-page-v2 .terms-prose p + .terms-bullet-list {
    margin-top: 16px;
}
.terms-page-v2 .terms-bullet-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.terms-page-v2 .terms-bullet-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-left: 10px;
    font-size: 14px;
    line-height: 18px;
    font-weight: 500;
    color: #455365;
}
.terms-page-v2 .terms-bullet-list li::before {
    content: "";
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    background: url("../images/legal/bullet-dot-8.svg") no-repeat center / 8px 8px;
}
.terms-page-v2 .terms-bullet-list + h2 {
    margin-top: 30px;
}
.terms-page-v2 .terms-prose p + p {
    margin-top: 10px;
}
.terms-page-v2 .terms-prose p.terms-p-tight {
    line-height: 18px;
}
.terms-page-v2 .terms-email-link {
    color: #006bff;
    text-decoration: none;
    /* Taller tap area (inline padding doesn't move the text lines) */
    padding: 14px 0;
}
.terms-page-v2 .terms-email-link:hover {
    text-decoration: underline;
}
.terms-page-v2 .terms-card p + p {
    margin-top: 10px;
}

/* ---------- Tablet ---------- */
@media (min-width: 768px) and (max-width: 1140px) {
    .terms-page-v2 .hero-section.terms-hero-figma {
        min-height: 0;
        padding: 150px 30px 80px;
    }
}
@media (max-width: 900px) {
    .terms-page-v2 .terms-grid-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---------- Mobile (Figma 320 frame) ---------- */
@media (max-width: 767px) {
    .terms-page-v2 .hero-section.terms-hero-figma {
        min-height: 0 !important;
        height: auto !important;
        width: auto;
        margin: 10px 10px 0 !important;
        padding: 78px 10px 40px !important;
        border-radius: 24px;
        background: linear-gradient(139.9deg, #3760D6 5.04%, #6E6FDC 37.76%, #A283D4 61.75%, #E2A4CB 83.56%, #FBEEDD 114.09%) !important;
    }
    .terms-hero-figma .terms-hero-inner {
        max-width: 270px;
        gap: 10px;
    }
    .terms-page-v2 .terms-hero-figma h1 {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 20px !important;
        line-height: 26px !important;
    }
    .terms-hero-figma p {
        font-size: 11px;
        line-height: 16px;
    }

    .terms-page-v2 .terms-band {
        padding: 40px 0;
    }
    .terms-page-v2 .terms-band-first {
        padding-top: 30px;
    }
    .terms-page-v2 .terms-band-muted {
        padding: 50px 0;
    }
    .terms-page-v2 .terms-inner {
        padding: 0 15px;
    }

    .terms-page-v2 .terms-prose h2 {
        margin: 30px 0 10px;
        font-size: 18px;
        line-height: 24px;
    }
    .terms-page-v2 .terms-prose h2:first-child {
        margin-top: 0;
    }
    .terms-page-v2 .terms-prose h3,
    .terms-page-v2 .terms-prose h2 + p + h3 {
        margin: 12px 0 10px;
        font-size: 14px;
        line-height: 18px;
        font-weight: 700;
    }
    .terms-page-v2 .terms-prose p {
        font-size: 11px;
        line-height: 16px;
        font-weight: 400;
    }
    .terms-page-v2 .terms-prose p + p {
        margin-top: 10px;
    }

    .terms-page-v2 .terms-section-head {
        margin-bottom: 20px;
    }
    .terms-page-v2 .terms-section-head h2 {
        margin-bottom: 8px;
        font-size: 18px;
        line-height: 23px;
    }
    .terms-page-v2 .terms-section-head p {
        font-size: 10px;
        line-height: 16px;
    }
    .terms-page-v2 .terms-grid-2 {
        grid-template-columns: minmax(0, 1fr);
        gap: 15px;
    }
    .terms-page-v2 .terms-card {
        padding: 20px 15px;
        border-radius: 16px;
    }
    .terms-page-v2 .terms-card-icon,
    .terms-page-v2 .terms-card-icon img {
        width: 40px;
        height: 40px;
    }
    .terms-page-v2 .terms-card-icon {
        margin-bottom: 15px;
    }
    .terms-page-v2 .terms-card h3 {
        font-size: 13px;
        line-height: 16px;
    }
    .terms-page-v2 .terms-card p {
        font-size: 11px;
        line-height: 18px;
        font-weight: 500;
    }
    .terms-page-v2 .terms-prose p.terms-p-tight {
        line-height: 16px;
    }
    .terms-page-v2 .terms-prose p + .terms-bullet-list {
        margin-top: 10px;
    }
    .terms-page-v2 .terms-bullet-list {
        gap: 6px;
    }
    .terms-page-v2 .terms-bullet-list li {
        align-items: flex-start;
        font-size: 11px;
        line-height: 16px;
        font-weight: 400;
    }
    .terms-page-v2 .terms-bullet-list li::before {
        height: 12px;
        background: url("../images/legal/bullet-dot-m-8x12.svg") no-repeat center / 8px 12px;
    }
    .terms-page-v2 .terms-card p + p {
        margin-top: 10px;
    }
}
