/* ==========================================================================
   Terms & Conditions page — scoped styles
   ========================================================================== */

.terms_section {
    padding: 70px 0;
    background:
        radial-gradient(900px 300px at 90% -20%, rgba(255, 94, 26, 0.05), transparent 60%),
        radial-gradient(700px 300px at -10% 120%, rgba(22, 55, 98, 0.05), transparent 60%),
        #f7f9fc;
        margin-bottom: 90px;
}

/* Kill floats from the global `.main > * { float:left }` and `p { float:left }`
   rules so lists and paragraphs render as normal block flow inside this page. */
.terms_section .terms_doc,
.terms_section .terms_block,
.terms_section .terms_intro,
.terms_section .terms_footer_note,
.terms_section .terms_block p,
.terms_section .terms_block h2,
.terms_section .terms_block h3,
.terms_section .terms_list,
.terms_section .terms_list > li,
.terms_section .terms_sublist,
.terms_section .terms_sublist > li {
    float: none !important;
    width: auto;
    clear: both;
    box-sizing: border-box;
}
.terms_section .terms_doc,
.terms_section .terms_block,
.terms_section .terms_intro,
.terms_section .terms_footer_note,
.terms_section .terms_list,
.terms_section .terms_list > li,
.terms_section .terms_sublist,
.terms_section .terms_sublist > li {
    display: block;
    width: 100%;
}

/* ---------- Intro ---------- */
.terms_intro {
    max-width: 900px;
    margin: 0 auto 32px;
    text-align: center;
}

.terms_intro h1 {
    color: #163762;
    font-weight: 700;
    font-size: 34px;
    line-height: 1.2;
    margin: 0 0 14px;
}

.terms_intro .terms_lead {
    color: #55607a;
    font-size: 16px;
    line-height: 1.75;
    margin: 0;
}

/* ---------- Document wrapper ---------- */
/* .terms_doc {
    max-width: 900px;
    margin: 0 auto;
} */

/* ---------- Section block ---------- */
.terms_block {
    background: #fff;
    border: 1px solid #eef2f7;
    border-radius: 14px;
    padding: 26px 30px;
    margin: 0 0 18px;
    box-shadow: 0 8px 20px rgba(22, 55, 98, 0.05);
    transition: box-shadow 0.25s ease;
}

.terms_block:hover {
    box-shadow: 0 12px 26px rgba(22, 55, 98, 0.08);
}

/* ---------- Section title with number/tag chip ---------- */
.terms_block__title {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #163762;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 14px;
    line-height: 1.3;
    letter-spacing: 0.1px;
}

.terms_block__tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    background: linear-gradient(135deg, #ff7a3d 0%, #ff5e1a 100%);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    border-radius: 10px;
    box-shadow: 0 6px 14px rgba(255, 94, 26, 0.25);
    flex: 0 0 auto;
}

/* ---------- Body copy inside a block ---------- */
.terms_block p {
    color: #55607a;
    font-size: 15.5px;
    line-height: 1.75;
    margin: 0 0 10px;
}

.terms_block p:last-child {
    margin-bottom: 0;
}

/* Subsection heading inside a block (e.g. 2.1 / 2.2 / 2.3) */
.terms_block__sub {
    color: #163762;
    font-size: 16px;
    font-weight: 600;
    margin: 18px 0 6px;
    letter-spacing: 0.2px;
    line-height: 1.4;
}
.terms_block__sub:first-child,
.terms_block__title + .terms_block__sub {
    margin-top: 8px;
}

/* ---------- Lists ---------- */
.terms_list {
    list-style: none;
    padding: 0;
    margin: 6px 0 0;
}

.terms_list > li {
    position: relative;
    padding: 8px 0 8px 26px;
    color: #3a3f51;
    font-size: 15.5px;
    line-height: 1.75;
    border-bottom: 1px solid #f2f4f8;
}

.terms_list > li:last-child {
    border-bottom: 0;
}

.terms_list > li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 17px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff5e1a;
    box-shadow: 0 0 0 4px rgba(255, 94, 26, 0.14);
}

/* Nested list (used inside "we bear no responsibility for any:") */
.terms_sublist {
    list-style: none;
    padding: 8px 0 0 0;
    margin: 0;
}

.terms_sublist > li {
    position: relative;
    padding: 4px 0 4px 20px;
    color: #55607a;
    font-size: 15px;
    line-height: 1.7;
    border-bottom: 0;
}

.terms_sublist > li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 15px;
    width: 8px;
    height: 2px;
    border-radius: 2px;
    background: #ff5e1a;
    opacity: 0.7;
}

/* Inline links inside terms */
.terms_section a {
    color: #ff5e1a;
    text-decoration: none;
    font-weight: 600;
}

.terms_section a:hover {
    text-decoration: underline;
}

/* ---------- Footer note ---------- */
.terms_footer_note {
    max-width: 900px;
    margin: 30px auto 0;
    padding: 22px 26px;
    text-align: center;
    background: #fff;
    border: 1px dashed #dfe6ef;
    border-radius: 14px;
    color: #55607a;
    font-size: 15px;
    line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
    .terms_section {
        padding: 45px 0;
    }
    .terms_intro h1 {
        font-size: 26px;
    }
    .terms_block {
        padding: 20px 20px;
    }
    .terms_block__title {
        font-size: 17px;
        gap: 10px;
    }
    .terms_block__tag {
        min-width: 30px;
        height: 30px;
        font-size: 13px;
        padding: 0 8px;
    }
    .terms_list > li,
    .terms_sublist > li {
        font-size: 14.5px;
    }
}
