.terms-page {
    --terms-text: #334155;
    --terms-link: #047857;
    --terms-danger: #b91c1c;
    --terms-danger-bg: #fef2f2;
    --terms-warning: #92400e;
    width: 100%;
    min-width: 0;
}

.terms-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
    color: var(--ui-muted);
    font-size: 15px;
}

.terms-breadcrumb a:hover { color: var(--terms-link); }
.terms-breadcrumb [aria-current="page"] { color: var(--ui-text); }

.terms-card {
    width: 100%;
    min-width: 0;
    padding: 32px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 16px;
    background: var(--ui-surface);
    box-shadow: var(--ui-shadow);
}

.nvc-terms {
    color: var(--terms-text);
    font-size: 17px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: break-word;
    word-break: normal;
    white-space: normal;
    text-transform: none;
}

.nvc-terms h1, .nvc-terms h2, .nvc-terms h3 {
    color: var(--ui-text);
    font-weight: 700;
    line-height: 1.5;
    text-transform: none;
    scroll-margin-top: 170px;
}

.nvc-terms .nvc-headline { margin: 0 0 14px; font-size: clamp(21px, 2.2vw, 28px); }
.nvc-terms .nvc-section { margin: 0 0 16px; font-size: 21px; }
.nvc-terms .nvc-subsection { margin: 24px 0 10px; font-size: 18px; }
.nvc-terms p { margin: 0 0 .7em; }
.nvc-terms strong { font-weight: 700; }
.nvc-terms .nvc-meta { margin-bottom: 20px; color: var(--ui-muted); font-size: 15px; line-height: 1.8; }
.nvc-terms ul, .nvc-terms ol { margin: 0 0 16px; padding-left: 26px; }
.nvc-terms li { padding-left: 4px; margin-bottom: 8px; }
.nvc-terms li:last-child { margin-bottom: 0; }
.nvc-terms hr { margin: 30px 0; border: 0; border-top: 1px solid var(--ui-border-strong); }
.nvc-terms a { color: var(--terms-link); text-decoration: underline; text-underline-offset: 3px; }
.nvc-terms a:hover { text-decoration-thickness: 2px; }
.terms-page a:focus-visible { outline: 2px solid var(--terms-link); outline-offset: 4px; border-radius: 3px; }

.nvc-terms .nvc-callout {
    margin: 0 0 20px;
    padding: 18px 20px;
    border: 1px solid var(--ui-border-strong);
    border-left: 4px solid var(--terms-link);
    border-radius: 10px;
    background: var(--ui-accent-soft);
}

.nvc-terms .nvc-callout p:last-child { margin-bottom: 0; }
.nvc-terms .nvc-red { color: var(--terms-danger); }
.nvc-terms .nvc-amber { color: var(--terms-warning); }
.nvc-terms .nvc-green { color: var(--terms-link); }
.nvc-terms .nvc-critical { padding: 14px 16px; border-radius: 8px; background: var(--terms-danger-bg); color: var(--terms-danger); }

.terms-toc {
    margin: 24px 0;
    padding: 18px 20px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 12px;
    background: var(--ui-page);
}

.terms-toc > strong { display: block; margin-bottom: 10px; color: var(--ui-text); }
.terms-toc-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 24px; }
.terms-toc-links a { display: block; font-size: 16px; }
.terms-back-top { display: flex; justify-content: flex-end; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--ui-border-strong); }

[data-color-mode="dark"] .terms-page {
    --terms-text: var(--ui-muted);
    --terms-link: var(--ui-dark-positive);
    --terms-danger: var(--ui-dark-negative);
    --terms-danger-bg: #38262a;
    --terms-warning: #f2cc89;
}

@media (max-width: 1023px) {
    .terms-card { padding: 24px; }
}

@media (max-width: 650px) {
    .terms-content { padding: 18px 12px; }
    .terms-breadcrumb { margin-bottom: 12px; font-size: 14px; }
    .terms-card { padding: 16px; }
    .nvc-terms .nvc-section { font-size: 19px; }
    .nvc-terms .nvc-callout, .terms-toc { padding: 14px; }
    .nvc-terms .nvc-critical { padding: 12px; }
    .terms-toc-links { grid-template-columns: minmax(0, 1fr); }
    .nvc-terms hr { margin: 24px 0; }
}

@font-face {
    font-family: 'Saira Semi Condensed Fallback';
    src: local('Arial');
    size-adjust: 91.75%;
    ascent-override: 123.71%;
    descent-override: 47.85%;
    line-gap-override: 0%;
}

.terms-page > .terms-consent { margin-top: 21.25px; }

.terms-consent {
    width: 100%;
    min-height: 144.09px;
    padding: 17px;
    border: 1px solid oklab(0.769006 0.0640422 0.176756 / 0.3);
    border-radius: 19.13px;
    background-color: oklab(0.986998 -0.00203261 0.0219285 / 0.8);
    color: #000;
    font-family: 'Saira Semi Condensed', 'Saira Semi Condensed Fallback';
    font-size: 17px;
    font-weight: 500;
    line-height: 25.5px;
}

.terms-consent-alert {
    display: grid;
    position: relative;
    align-items: flex-start;
    grid-template-columns: 12.75px minmax(0, 1fr);
    grid-template-rows: 17px 16.98px;
    gap: 2.13px 10.63px;
    width: 100%;
    height: 59.36px;
    margin: 0 0 12.75px;
    padding: 10.63px 12.75px;
    border: 1px solid oklab(0.795004 0.0126784 0.183566 / 0.3);
    border-radius: 10.63px;
    background-color: oklab(0.795004 0.0126784 0.183566 / 0.04);
    font-size: 12.75px;
    line-height: 17px;
}

.terms-consent-warning-icon { width: 17px; height: 17px; color: lab(76.3898 14.5258 98.4589); }

.terms-consent-title {
    display: flow-root;
    grid-column: 2;
    width: 100%;
    max-width: 1205.12px;
    height: 17px;
    min-height: 17px;
    overflow: hidden;
    font-weight: 600;
    letter-spacing: -.32px;
    text-transform: capitalize;
}

.terms-consent-description {
    display: grid;
    justify-items: start;
    grid-template-columns: 1fr;
    grid-template-rows: 16.98px;
    gap: 4.25px;
    grid-column: 2;
    width: 100%;
    max-width: 1205.12px;
    height: 16.98px;
    color: lab(32.72 -0.0000149012 0);
}

.terms-consent-actions { display: flex; justify-content: flex-end; width: 100%; height: 35.98px; margin: 0; }

.terms-consent-button {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6.38px;
    flex-shrink: 0;
    width: 167.45px;
    height: 35.98px;
    padding: 8.5px 17px;
    border: 1px solid transparent;
    border-radius: 14.88px;
    background-color: lab(55.0481 -49.9246 15.93);
    background-clip: padding-box;
    color: #fff;
    font-family: inherit;
    font-size: 12.75px;
    font-weight: 600;
    line-height: 17px;
    text-align: center;
    text-transform: capitalize;
    white-space: nowrap;
    cursor: pointer;
}

.terms-consent-button svg { flex-shrink: 0; width: 14.88px; height: 14.88px; pointer-events: none; }
.terms-consent-button:disabled { cursor: default; }
.terms-consent-button[aria-busy="true"] { width: auto; min-width: 167.45px; cursor: wait; }
.terms-consent-toast { position: fixed; top: 20px; right: 20px; z-index: 300; max-width: min(420px, calc(100vw - 40px)); padding: 12px 16px; border: 1px solid #a7f3d0; border-radius: 10px; background: #ecfdf5; color: #065f46; box-shadow: var(--ui-shadow); font-size: 15px; line-height: 1.5; }
.terms-consent-toast.is-error { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.terms-consent-toast[hidden] { display: none; }

@media (max-width: 650px) {
    .terms-consent-alert { height: auto; min-height: 59.36px; grid-template-rows: 17px auto; }
    .terms-consent-description { height: auto; min-height: 16.98px; grid-template-rows: auto; }
}
