/* static-page--terms */
body.static-page--terms {
    --primary: #d48b12;
    --primary-hover: #b67408;
    --primary-rgb: 212, 139, 18;
    --accent-blue: #334155;
    --accent-blue-hover: #1f2937;
    --accent-blue-rgb: 51, 65, 85;
    --text-main: #131a24;
    --text-muted: #5b6676;
    --border: rgba(148, 163, 184, 0.26);
    --bg-body: #f1f5f9;
    --bg-card: rgba(255, 255, 255, 0.95);
    --bg-soft: rgba(248, 250, 252, 0.94);
    --shadow-sm: 0 18px 38px -34px rgba(51, 65, 85, 0.28);
    --shadow-md: 0 28px 72px -48px rgba(51, 65, 85, 0.24);
    background-color: var(--bg-body);
    background-image: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 52%, #f8fafc 100%);
}
body.static-page--terms header {
    top: 0;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(148, 163, 184, 0.24);
    box-shadow: 0 18px 38px -28px rgba(51, 65, 85, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
body.static-page--terms nav,
body.static-page--terms .logo,
body.static-page--terms .header-user-pill,
body.static-page--terms .site-language-switch summary,
body.static-page--terms .theme-toggle,
body.static-page--terms .btn-outline,
body.static-page--terms footer h4,
body.static-page--terms footer a:hover {
    color: var(--text-main);
}
body.static-page--terms .site-language-switch summary,
body.static-page--terms .site-language-menu,
body.static-page--terms .theme-toggle,
body.static-page--terms .btn-outline,
body.static-page--terms .header-user-pill,
body.static-page--terms .hamburger-btn {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(148, 163, 184, 0.24);
}
body.static-page--terms .theme-toggle:hover,
body.static-page--terms .btn-outline:hover,
body.static-page--terms .hamburger-btn:hover {
    color: var(--primary);
    border-color: rgba(212, 139, 18, 0.28);
}
body.static-page--terms .site-language-option:hover,
body.static-page--terms .site-language-option.is-active {
    background: rgba(212, 139, 18, 0.1);
    color: var(--primary);
}
body.static-page--terms .btn-primary {
    background: linear-gradient(180deg, #e0a32c 0%, #b67408 100%);
    box-shadow: 0 18px 38px -24px rgba(212, 139, 18, 0.44);
}
body.static-page--terms footer {
    border-top-color: rgba(148, 163, 184, 0.16);
}
body.static-page--terms footer p,
body.static-page--terms footer li,
body.static-page--terms footer a,
body.static-page--terms .footer-bottom {
    color: #5b6676;
}

.terms-shell,
.terms-hero,
.terms-timeline-track,
.terms-cards-stack,
.terms-card-grid,
.terms-glossary-grid,
.terms-acceptance-actions {
    min-width: 0;
}
.terms-shell {
    position: relative;
    margin: 30px 0 42px;
    padding: 34px;
    overflow: hidden;
    border-radius: 38px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 250, 252, 0.94) 100%);
    box-shadow: 0 32px 72px -50px rgba(51, 65, 85, 0.22);
}
.terms-shell::before {
    display: none;
}
.terms-shell::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 38px;
    border: 1px solid rgba(212, 139, 18, 0.08);
    pointer-events: none;
}

.terms-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    margin-bottom: 12px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.05);
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.terms-eyebrow,
.terms-section-kicker,
.terms-summary-kicker {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 28px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(212, 139, 18, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}
.terms-hero {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}
.terms-hero-copy {
    display: grid;
    gap: 16px;
    justify-items: center;
    text-align: center;
}
.terms-hero-copy h1 {
    margin: 0;
    max-width: 840px;
    font-size: clamp(42px, 6vw, 72px);
    line-height: 1;
    letter-spacing: 0;
    color: var(--text-main);
}
.terms-hero-intro {
    max-width: 760px;
    margin: 0;
    color: var(--text-muted);
    font-size: 18px;
    line-height: 1.9;
}
.terms-meta-line {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    color: #7b8796;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.terms-section-head {
    display: grid;
    gap: 12px;
    max-width: 780px;
    margin-bottom: 22px;
}
.terms-section-head h2,
.terms-legal-pane h2,
.terms-acceptance-copy h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
}
.terms-section-head p,
.terms-timeline-card p,
.terms-summary-pane p,
.terms-acceptance-copy p,
.terms-glossary-tip p,
.terms-summary-note {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.8;
}

.terms-timeline-section,
.terms-contracts-section,
.terms-glossary-section {
    position: relative;
    z-index: 1;
    margin-bottom: 24px;
}
.terms-timeline-track {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.terms-timeline-card,
.terms-contract-card,
.terms-glossary-item,
.terms-acceptance-band {
    position: relative;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 24px 54px -40px rgba(51, 65, 85, 0.22);
}
.terms-timeline-card {
    display: grid;
    gap: 12px;
    padding: 24px;
    border-radius: 26px;
}
.terms-timeline-track .terms-timeline-card:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 32px;
    right: -16px;
    width: 16px;
    height: 2px;
    background: linear-gradient(90deg, rgba(212, 139, 18, 0.5) 0%, rgba(212, 139, 18, 0.1) 100%);
}
.terms-timeline-index,
.terms-legal-ref,
.terms-acceptance-seal-label {
    color: #7b8796;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}
.terms-timeline-card h3,
.terms-summary-pane h3,
.terms-glossary-tip strong {
    margin: 0;
    color: var(--text-main);
    line-height: 1.24;
}

.terms-cards-stack {
    display: grid;
    gap: 20px;
}
.terms-contract-card {
    overflow: hidden;
    border-radius: 34px;
}
.terms-contract-card--critical {
    border-color: rgba(212, 139, 18, 0.34);
    box-shadow: 0 28px 60px -42px rgba(212, 139, 18, 0.34);
}
.terms-card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
}
.terms-legal-pane,
.terms-summary-pane {
    padding: 30px;
}
.terms-legal-pane {
    display: grid;
    gap: 14px;
    min-width: 0;
}
.terms-legal-pane h2 {
    font-size: clamp(26px, 3.6vw, 36px);
}
.terms-legal-pane p,
.terms-legal-list li {
    margin: 0;
    color: #465364;
    font-family: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
    font-size: 16px;
    line-height: 1.9;
}
.terms-legal-list,
.terms-summary-points {
    margin: 0;
    padding: 0;
    list-style: none;
}
.terms-legal-list {
    display: grid;
    gap: 10px;
}
.terms-legal-list li,
.terms-summary-points li {
    position: relative;
    padding-left: 18px;
}
.terms-legal-list li::before,
.terms-summary-points li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(212, 139, 18, 0.82);
    box-shadow: 0 0 0 4px rgba(212, 139, 18, 0.14);
}
.terms-summary-pane {
    display: grid;
    gap: 16px;
    min-width: 0;
    order: -1;
    background: #f8fafc;
    border-right: 1px solid rgba(148, 163, 184, 0.18);
}
.terms-contract-card--critical .terms-summary-pane {
    background: linear-gradient(180deg, rgba(254, 243, 199, 0.58) 0%, rgba(255, 251, 235, 0.94) 100%);
    border-right-color: rgba(212, 139, 18, 0.22);
}
.terms-summary-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.terms-summary-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(51, 65, 85, 0.08);
    color: var(--accent-blue);
    flex-shrink: 0;
}
.terms-contract-card--critical .terms-summary-icon {
    background: rgba(212, 139, 18, 0.14);
    color: var(--primary);
}
.terms-critical-flag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 0 12px;
    border-radius: 999px;
    border: 1px solid rgba(212, 139, 18, 0.26);
    color: #9a6205;
    background: rgba(212, 139, 18, 0.1);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.terms-summary-points {
    display: grid;
    gap: 10px;
}
.terms-summary-note {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(51, 65, 85, 0.06);
}
.terms-contract-card--critical .terms-summary-note {
    background: rgba(212, 139, 18, 0.1);
}

.terms-glossary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}
.terms-glossary-item {
    display: grid;
    gap: 14px;
    padding: 20px;
    border-radius: 22px;
    outline: none;
}
.terms-glossary-term {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(212, 139, 18, 0.22);
    background: rgba(212, 139, 18, 0.08);
    color: #9a6205;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.terms-glossary-tip {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    z-index: 4;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(148, 163, 184, 0.18);
    background: rgba(255, 255, 255, 0.98);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
}
.terms-glossary-item:hover .terms-glossary-tip,
.terms-glossary-item:focus-within .terms-glossary-tip,
.terms-glossary-item:focus .terms-glossary-tip {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.terms-acceptance-band {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.88fr);
    gap: 22px;
    align-items: start;
    padding: 32px;
    border-radius: 34px;
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    border-color: rgba(245, 158, 11, 0.18);
    box-shadow: 0 30px 70px -46px rgba(15, 23, 42, 0.78);
}
.terms-acceptance-copy,
.terms-acceptance-side {
    display: grid;
    gap: 16px;
}
.terms-acceptance-band h2,
.terms-acceptance-band p,
.terms-signature-check,
.terms-acceptance-seal,
.terms-signature-note {
    color: #e5edf8;
}
.terms-acceptance-band .terms-section-kicker {
    background: rgba(245, 158, 11, 0.14);
    color: #fbbf24;
}
.terms-signature-check {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
}
.terms-signature-box {
    width: 26px;
    height: 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid rgba(245, 158, 11, 0.42);
    background: rgba(245, 158, 11, 0.16);
    color: #fbbf24;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.18);
}
.terms-signature-note {
    color: #94a3b8;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.terms-acceptance-seal {
    display: grid;
    gap: 6px;
    padding: 18px 20px;
    border-radius: 22px;
    border: 1px solid rgba(245, 158, 11, 0.18);
    background: rgba(15, 23, 42, 0.6);
}
.terms-acceptance-seal strong {
    color: #f8fafc;
    font-size: 26px;
    letter-spacing: -0.03em;
}
.terms-acceptance-seal span:last-child {
    color: #94a3b8;
}
.terms-acceptance-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

body.static-page--terms.dark-mode {
    --primary: #f4bf4f;
    --primary-hover: #f7d483;
    --primary-rgb: 244, 191, 79;
    --accent-blue: #d9e2ef;
    --accent-blue-hover: #f8fafc;
    --accent-blue-rgb: 217, 226, 239;
    --text-main: #edf2f7;
    --text-muted: #aab4c3;
    --border: rgba(94, 111, 138, 0.28);
    --bg-body: #0b1220;
    --bg-card: rgba(15, 23, 42, 0.92);
    --bg-soft: rgba(15, 23, 42, 0.96);
    --shadow-sm: 0 18px 40px -34px rgba(2, 8, 23, 0.94);
    --shadow-md: 0 28px 70px -48px rgba(2, 8, 23, 0.98);
    background-image: linear-gradient(180deg, #060b14 0%, #0b1220 52%, #101826 100%);
}
body.static-page--terms.dark-mode header {
    background: rgba(8, 15, 28, 0.82);
    border-color: rgba(94, 111, 138, 0.28);
    box-shadow: 0 22px 50px -42px rgba(2, 8, 23, 0.98), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
body.static-page--terms.dark-mode nav,
body.static-page--terms.dark-mode .logo,
body.static-page--terms.dark-mode .header-user-pill,
body.static-page--terms.dark-mode .site-language-switch summary,
body.static-page--terms.dark-mode .theme-toggle,
body.static-page--terms.dark-mode .btn-outline,
body.static-page--terms.dark-mode footer h4,
body.static-page--terms.dark-mode footer a:hover {
    color: #edf2f7;
}
body.static-page--terms.dark-mode .site-language-switch summary,
body.static-page--terms.dark-mode .site-language-menu,
body.static-page--terms.dark-mode .theme-toggle,
body.static-page--terms.dark-mode .btn-outline,
body.static-page--terms.dark-mode .header-user-pill,
body.static-page--terms.dark-mode .hamburger-btn {
    background: rgba(15, 23, 42, 0.82);
    border-color: rgba(94, 111, 138, 0.28);
}
body.static-page--terms.dark-mode .site-language-option {
    color: #dbe5f2;
}
body.static-page--terms.dark-mode .site-language-option:hover,
body.static-page--terms.dark-mode .site-language-option.is-active {
    background: rgba(244, 191, 79, 0.12);
    color: #f7d483;
}
body.static-page--terms.dark-mode .theme-toggle:hover,
body.static-page--terms.dark-mode .btn-outline:hover,
body.static-page--terms.dark-mode .hamburger-btn:hover {
    border-color: rgba(244, 191, 79, 0.28);
    color: #f7d483;
}
body.static-page--terms.dark-mode footer p,
body.static-page--terms.dark-mode footer li,
body.static-page--terms.dark-mode footer a,
body.static-page--terms.dark-mode .footer-bottom {
    color: #9aa8ba;
}
body.static-page--terms.dark-mode .terms-shell {
    background: linear-gradient(180deg, rgba(8, 15, 28, 0.96) 0%, rgba(10, 18, 32, 0.94) 100%);
    border-color: rgba(94, 111, 138, 0.24);
    box-shadow: 0 34px 80px -52px rgba(2, 8, 23, 0.98);
}
body.static-page--terms.dark-mode .terms-shell::before {
    display: none;
}
body.static-page--terms.dark-mode .terms-shell::after {
    border-color: rgba(244, 191, 79, 0.1);
}
body.static-page--terms.dark-mode .terms-kicker {
    background: rgba(170, 180, 195, 0.08);
    color: #c7d1de;
}
body.static-page--terms.dark-mode .terms-eyebrow,
body.static-page--terms.dark-mode .terms-section-kicker,
body.static-page--terms.dark-mode .terms-summary-kicker {
    background: rgba(244, 191, 79, 0.12);
    color: #f7d483;
}
body.static-page--terms.dark-mode .terms-hero-copy h1,
body.static-page--terms.dark-mode .terms-section-head h2,
body.static-page--terms.dark-mode .terms-legal-pane h2,
body.static-page--terms.dark-mode .terms-acceptance-copy h2,
body.static-page--terms.dark-mode .terms-timeline-card h3,
body.static-page--terms.dark-mode .terms-summary-pane h3,
body.static-page--terms.dark-mode .terms-glossary-tip strong {
    color: #f8fafc;
}
body.static-page--terms.dark-mode .terms-hero-intro,
body.static-page--terms.dark-mode .terms-section-head p,
body.static-page--terms.dark-mode .terms-timeline-card p,
body.static-page--terms.dark-mode .terms-summary-pane p,
body.static-page--terms.dark-mode .terms-summary-note,
body.static-page--terms.dark-mode .terms-glossary-tip p,
body.static-page--terms.dark-mode .terms-meta-line {
    color: #aab4c3;
}
body.static-page--terms.dark-mode .terms-timeline-card,
body.static-page--terms.dark-mode .terms-contract-card,
body.static-page--terms.dark-mode .terms-glossary-item {
    background: rgba(15, 23, 42, 0.8);
    border-color: rgba(94, 111, 138, 0.26);
    box-shadow: 0 24px 54px -40px rgba(2, 8, 23, 0.98);
}
body.static-page--terms.dark-mode .terms-contract-card--critical {
    border-color: rgba(244, 191, 79, 0.26);
    box-shadow: 0 28px 60px -42px rgba(244, 191, 79, 0.18);
}
body.static-page--terms.dark-mode .terms-summary-pane {
    background: rgba(8, 15, 28, 0.74);
    border-right-color: rgba(94, 111, 138, 0.26);
}
body.static-page--terms.dark-mode .terms-contract-card--critical .terms-summary-pane {
    background: linear-gradient(180deg, rgba(87, 61, 9, 0.34) 0%, rgba(15, 23, 42, 0.86) 100%);
    border-right-color: rgba(244, 191, 79, 0.2);
}
body.static-page--terms.dark-mode .terms-summary-icon {
    background: rgba(148, 163, 184, 0.08);
    color: #dbe5f2;
}
body.static-page--terms.dark-mode .terms-contract-card--critical .terms-summary-icon {
    background: rgba(244, 191, 79, 0.14);
    color: #f7d483;
}
body.static-page--terms.dark-mode .terms-critical-flag {
    color: #f7d483;
    border-color: rgba(244, 191, 79, 0.24);
    background: rgba(244, 191, 79, 0.12);
}
body.static-page--terms.dark-mode .terms-legal-pane p,
body.static-page--terms.dark-mode .terms-legal-list li {
    color: #c3cfdd;
}
body.static-page--terms.dark-mode .terms-legal-list li::before,
body.static-page--terms.dark-mode .terms-summary-points li::before {
    background: rgba(244, 191, 79, 0.9);
    box-shadow: 0 0 0 4px rgba(244, 191, 79, 0.12);
}
body.static-page--terms.dark-mode .terms-summary-note {
    background: rgba(148, 163, 184, 0.08);
}
body.static-page--terms.dark-mode .terms-contract-card--critical .terms-summary-note {
    background: rgba(244, 191, 79, 0.12);
}
body.static-page--terms.dark-mode .terms-glossary-term {
    color: #f7d483;
    border-color: rgba(244, 191, 79, 0.22);
    background: rgba(244, 191, 79, 0.1);
}
body.static-page--terms.dark-mode .terms-glossary-tip {
    border-color: rgba(94, 111, 138, 0.26);
    background: rgba(8, 15, 28, 0.98);
    box-shadow: 0 22px 44px -34px rgba(2, 8, 23, 0.98);
}

@media (max-width: 920px) {
    .terms-shell {
        margin-top: 22px;
        padding: 24px;
        border-radius: 30px;
    }

    .terms-shell::after {
        border-radius: 30px;
    }

    .terms-timeline-track {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .terms-timeline-track .terms-timeline-card:nth-child(2)::after,
    .terms-timeline-track .terms-timeline-card:last-child::after {
        display: none;
    }

    .terms-card-grid,
    .terms-acceptance-band {
        grid-template-columns: 1fr;
    }

    .terms-summary-pane {
        border-right: 0;
        border-top: 1px solid rgba(148, 163, 184, 0.18);
    }

    .terms-contract-card--critical .terms-summary-pane {
        border-top-color: rgba(212, 139, 18, 0.22);
    }

    .terms-glossary-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .terms-shell {
        margin-top: 18px;
        padding: 18px;
        border-radius: 24px;
    }

    .terms-shell::after {
        border-radius: 24px;
    }

    .terms-hero-copy h1 {
        font-size: clamp(36px, 12vw, 52px);
    }

    .terms-hero-intro,
    .terms-section-head p,
    .terms-timeline-card p,
    .terms-summary-pane p,
    .terms-summary-note,
    .terms-glossary-tip p,
    .terms-legal-pane p,
    .terms-legal-list li,
    .terms-signature-check {
        font-size: 15px;
    }

    .terms-timeline-track,
    .terms-glossary-grid {
        grid-template-columns: 1fr;
    }

    .terms-timeline-card,
    .terms-legal-pane,
    .terms-summary-pane,
    .terms-glossary-item,
    .terms-acceptance-band {
        padding: 22px 18px;
        border-radius: 24px;
    }

    .terms-summary-top {
        align-items: flex-start;
    }

    .terms-acceptance-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .terms-acceptance-actions .btn {
        width: 100%;
        justify-content: center;
    }
}
