/* Terms and Conditions page. Shared navbar and footer use existing site styles. */
:root {
    --terms-blue: #3758f9;
    --terms-navy: #090e34;
    --terms-text: #17213e;
    --terms-muted: #626f89;
    --terms-border: #e4e9f3;
    --terms-soft: #f5f7fd;
}

#terms-main {
    color: var(--terms-text);
}

#terms-main * {
    box-sizing: border-box;
}

#terms-main .container {
    max-width: 1200px;
}

#terms-main p {
    line-height: 1.8;
}

#terms-main h1,
#terms-main h2,
#terms-main h3 {
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.18;
}

#terms-main a {
    text-decoration: none;
}

.terms-hero {
    padding: 160px 0 76px;
    color: #ffffff;
    background:
        radial-gradient(ellipse at 85% 5%, #284aab 0%, transparent 42%),
        linear-gradient(135deg, #090e34, #162762 95%);
}

.terms-eyebrow {
    display: block;
    margin-bottom: 18px;
    color: #b4c7ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.terms-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(38px, 4.6vw, 62px);
}

.terms-lede {
    max-width: 760px;
    margin: 0;
    color: #e1e7f8;
    font-size: 18px;
}

.terms-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.terms-meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    color: #dbe4ff;
    font-size: 13px;
}

.terms-meta strong {
    color: #ffffff;
    font-weight: 800;
}

.terms-layout {
    padding: 56px 0 90px;
    background: #f8faff;
}

.terms-layout-grid {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 42px;
    align-items: start;
}

.terms-toc {
    position: sticky;
    top: 100px;
    padding: 22px;
    border: 1px solid var(--terms-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 28px rgba(9, 14, 52, 0.05);
}

.terms-toc-title {
    margin: 0 0 14px;
    color: var(--terms-text);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.terms-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: terms-toc;
}

.terms-toc li {
    counter-increment: terms-toc;
    margin-bottom: 8px;
    line-height: 1.45;
}

.terms-toc li::before {
    content: counter(terms-toc) ".";
    display: inline-block;
    width: 20px;
    color: #8a96ad;
    font-size: 11px;
    font-weight: 700;
}

.terms-toc a {
    color: #52617c;
    font-size: 13px;
}

.terms-toc a:hover {
    color: var(--terms-blue);
}

.terms-document {
    padding: 42px 46px;
    border: 1px solid var(--terms-border);
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 14px 36px rgba(9, 14, 52, 0.06);
}

.terms-document > p:first-of-type {
    margin-top: 0;
}

.terms-document p {
    margin: 0 0 18px;
    color: #34405c;
    font-size: 15px;
}

.terms-notice {
    margin-bottom: 28px;
    padding: 18px 20px;
    border: 1px solid #cdd8f5;
    border-left: 4px solid var(--terms-blue);
    border-radius: 10px;
    background: #f4f7ff;
    color: #293656;
    font-size: 14px;
    line-height: 1.7;
}

.terms-notice strong {
    color: var(--terms-text);
}

.terms-entities {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin: 28px 0 34px;
}

.terms-entity {
    padding: 22px 24px;
    border: 1px solid var(--terms-border);
    border-radius: 14px;
    background: var(--terms-soft);
}

.terms-entity-label {
    display: block;
    margin-bottom: 8px;
    color: var(--terms-blue);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.terms-entity h2,
.terms-entity h3 {
    margin: 0 0 8px;
    color: var(--terms-text);
    font-size: 19px;
}

.terms-entity p {
    margin: 0 0 8px;
    color: #52617c;
    font-size: 13px;
    line-height: 1.65;
}

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

.terms-document section {
    padding-top: 28px;
    margin-top: 28px;
    border-top: 1px solid var(--terms-border);
    scroll-margin-top: 100px;
}

.terms-document section:first-of-type {
    padding-top: 0;
    margin-top: 0;
    border-top: 0;
}

.terms-document h2 {
    margin: 0 0 14px;
    color: var(--terms-text);
    font-size: clamp(21px, 2vw, 25px);
}

.terms-document ul {
    margin: 0 0 18px;
    padding-left: 22px;
}

.terms-document li {
    margin-bottom: 8px;
    color: #34405c;
    font-size: 15px;
    line-height: 1.7;
}

.terms-document a {
    color: var(--terms-blue);
    font-weight: 700;
}

.terms-document a:hover {
    text-decoration: underline;
}

.terms-entities-contact {
    margin-bottom: 0;
}

.terms-entities-contact .terms-entity {
    background: #ffffff;
}

@media (max-width: 1000px) {
    .terms-layout-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .terms-toc {
        position: static;
    }

    .terms-toc ol {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 4px 20px;
    }
}

@media (max-width: 720px) {
    .terms-hero {
        padding: 132px 0 58px;
    }

    .terms-lede {
        font-size: 16px;
    }

    .terms-layout {
        padding: 36px 0 64px;
    }

    .terms-document {
        padding: 28px 22px;
        border-radius: 14px;
    }

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

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