.terms-page {
    min-height: 100vh;
    padding: 32px 18px;
    background: #111316;
    color: #dfe5eb;
}

.terms-panel {
    width: min(920px, 100%);
    margin: 0 auto;
    padding: 26px;
    border: 1px solid #2b323a;
    border-radius: 10px;
    background: #15191e;
    box-shadow: 0 18px 48px rgb(0 0 0 / 24%);
}

.terms-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.terms-brand img:first-child {
    width: 34px;
    height: 34px;
}

.terms-brand img:last-child {
    width: auto;
    height: 22px;
}

.terms-document {
    line-height: 1.65;
}

.terms-document header {
    padding-bottom: 18px;
    border-bottom: 1px solid #2b323a;
}

.terms-document h1 {
    margin: 3px 0 5px;
    color: #f4f7fa;
    font-size: clamp(28px, 5vw, 42px);
}

.terms-document h2 {
    margin: 0 0 8px;
    color: #edf2f6;
    font-size: 18px;
}

.terms-document p,
.terms-document li,
.terms-document header p {
    color: #b7c0ca;
}

.terms-document p {
    margin: 0 0 10px;
}

.terms-document section {
    padding-top: 22px;
}

.terms-document ul {
    display: grid;
    gap: 6px;
    margin: 8px 0 0;
    padding-left: 22px;
}

.terms-document a,
.terms-links a,
.terms-consent a {
    color: #82cfff;
}

.terms-kicker {
    margin: 0;
    color: #70c6a7 !important;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.terms-introduction {
    margin-top: 20px !important;
    color: #d6dde4 !important;
}

.terms-links {
    display: flex;
    gap: 18px;
    margin-top: 26px;
    padding-top: 18px;
    border-top: 1px solid #2b323a;
}

.terms-acceptance-page .terms-panel {
    display: grid;
    gap: 18px;
}

.terms-scroll {
    max-height: min(58vh, 680px);
    padding: 18px;
    overflow: auto;
    border: 1px solid #303842;
    border-radius: 8px;
    background: #11151a;
}

.terms-consent {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #3d766c;
    border-radius: 8px;
    background: #17342f;
}

.terms-consent label {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 10px;
    color: #e5f4f0;
    line-height: 1.45;
}

.terms-consent input[type="checkbox"] {
    width: 19px;
    height: 19px;
    margin-top: 2px;
}

.terms-consent button {
    justify-self: start;
}

.terms-consent p {
    margin: 0;
    color: #b9d6cf;
    font-size: 13px;
}

.terms-signout {
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: #82cfff;
    font: inherit;
    text-decoration: underline;
}

.terms-error {
    padding: 10px 12px;
    border: 1px solid #79513e;
    border-radius: 6px;
    background: #241a16;
    color: #ffc7a8;
}

@media (max-width: 620px) {
    .terms-page {
        padding: 12px;
    }

    .terms-panel {
        padding: 18px;
    }

    .terms-scroll {
        max-height: 54vh;
        padding: 12px;
    }
}
