:root {
    --terms-header-height: 74px;
}

.terms-page {
    margin: 0;
    min-height: 100vh;
    background: #f7f7f8;
    color: #161821;
    font-family: Inter, Arial, sans-serif;
}

.terms-mobile-bar {
    min-height: var(--terms-header-height);
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
}

.terms-back {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: #273469;
}

.terms-brand {
    display: block;
    color: #273469;
    font-size: 14px;
    font-weight: 800;
}

.terms-brand span {
    color: #ff6b00;
}

.terms-mobile-bar h1,
.terms-mobile-title {
    margin: 1px 0 0;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.terms-article {
    max-width: 860px;
    margin: 0 auto;
    padding: 28px 20px 80px;
}

.terms-hero {
    margin: 0 0 36px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e5e7eb;
}

.terms-hero .eyebrow {
    margin: 0 0 10px;
    color: #6d4fe5;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.terms-hero h1 {
    margin: 0 0 14px;
    font-size: clamp(34px, 6vw, 56px);
    line-height: 1.05;
    letter-spacing: -.04em;
}

.terms-hero .deck {
    margin: 0 0 16px;
    max-width: 640px;
    color: #3d4254;
    font-size: 18px;
    line-height: 1.55;
}

.terms-hero .meta {
    margin: 0;
    color: #6b7280;
    font-size: 13px;
}

.terms-body section {
    scroll-margin-top: calc(var(--brandeduk-site-header-height, 180px) + 20px);
}

.terms-body h2 {
    margin: 42px 0 12px;
    font-size: 26px;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.terms-body p,
.terms-body li {
    font-size: 17px;
    line-height: 1.65;
    color: #2b3040;
}

.terms-body p {
    margin: 0 0 14px;
}

.terms-body h3 {
    margin: 24px 0 10px;
    font-size: 18px;
    line-height: 1.3;
    letter-spacing: -.02em;
}

.terms-body ul {
    margin: 0 0 16px;
    padding-left: 1.25em;
}

.terms-body li {
    margin: 0 0 8px;
}

.terms-body a {
    color: #273469;
}

.terms-body .lead {
    font-size: 19px;
    color: #353946;
}

.terms-toc {
    margin: 0 0 8px;
    padding: 20px 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.terms-toc h2 {
    margin: 0 0 10px;
    font-size: 15px;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #6b7280;
}

.terms-toc ol {
    margin: 0;
    padding-left: 1.5em;
    columns: 2;
    column-gap: 32px;
}

.terms-toc li {
    margin: 0 0 6px;
    font-size: 15px;
    line-height: 1.4;
    break-inside: avoid;
}

.terms-toc a {
    color: #273469;
    text-decoration: none;
}

.terms-toc a:hover,
.terms-toc a:focus-visible {
    text-decoration: underline;
}

.terms-table-wrap {
    margin: 0 0 18px;
    overflow-x: auto;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
}

.terms-table th,
.terms-table td {
    padding: 12px 16px;
    text-align: left;
    vertical-align: top;
    font-size: 16px;
    line-height: 1.5;
    color: #2b3040;
    border-bottom: 1px solid #e5e7eb;
}

.terms-table th {
    background: #f3f4f6;
    color: #161821;
    font-weight: 700;
}

.terms-table tbody tr:last-child td {
    border-bottom: 0;
}

.terms-cookie-settings {
    display: inline-block;
    padding: 10px 18px;
    border: 1px solid #273469;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}

.terms-rule {
    margin: 48px 0 20px;
    border: 0;
    border-top: 1px solid #e5e7eb;
}

.terms-body .terms-copyright {
    font-size: 14px;
    color: #6b7280;
}

.terms-company {
    margin: 48px 0 0;
    padding: 24px;
    border-radius: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
}

.terms-company h2 {
    margin-top: 0;
}

.terms-company p {
    margin: 0 0 8px;
}

.terms-page .quote-footer {
    display: none;
}

@media (max-width: 699px) {
    body.terms-page {
        padding-top: 0 !important;
    }

    .site-header,
    .top-promo-bar,
    .header-with-promo,
    [data-pc-footer] {
        display: none !important;
    }

    .terms-toc {
        padding: 16px 18px;
    }

    .terms-toc ol {
        columns: 1;
    }

    .terms-table th,
    .terms-table td {
        padding: 10px 12px;
        font-size: 15px;
    }
}

@media (min-width: 700px) {
    .terms-mobile-bar,
    .terms-page .bottom-nav,
    [data-mobile-footer] {
        display: none !important;
    }

    .terms-article {
        padding: 48px 24px 100px;
    }
}
