.terms-page { --terms-muted: #c5bfce; padding-top: 124px; }
.terms-document { max-width: 840px; margin: 0 auto 72px; padding: 48px 52px; background: #0c0917; border: 1px solid #ffffff20; border-radius: 8px; color: #ded9e5; }
.terms-document h1, .terms-document h2 { font-family: 'Inter', Arial, sans-serif; text-transform: none; color: #f7f5fa; }
.terms-document h1 { font-size: clamp(28px, 3.5vw, 40px); font-weight: 700; line-height: 1.25; letter-spacing: -.035em; }
.terms-document-header { padding-bottom: 32px; border-bottom: 1px solid #ffffff20; }
.terms-document p { font-size: 15px; line-height: 1.95; }
.terms-document .terms-date { color: #a9a1b7; font-size: 13px; margin: 14px 0 24px; }
.terms-document section { padding-top: 30px; scroll-margin-top: 116px; }
.terms-document h2 { margin-bottom: 14px; font-size: 18px; font-weight: 700; letter-spacing: -.015em; line-height: 1.5; }
.terms-document section p + p { margin-top: 12px; }
.terms-contact { margin-top: 34px; padding-top: 24px; border-top: 1px solid #ffffff20; color: var(--terms-muted); }
.terms-document a { color: #e0d0f3; text-underline-offset: 4px; }
.terms-document a:hover { color: #fff; }
.terms-document a:focus-visible { outline: 2px solid #d6b5ff; outline-offset: 5px; }
@media (max-width: 900px) {
    .terms-document { margin-inline: 24px; padding: 36px; }
}
@media (max-width: 540px) {
    .terms-page { padding-top: 112px; }
    .terms-document { margin: 0 16px 40px; padding: 28px 22px; }
    .terms-document-header { padding-bottom: 24px; }
    .terms-document p { font-size: 14px; line-height: 1.9; }
    .terms-document h2 { font-size: 17px; }
    .terms-document section { padding-top: 26px; }
}
@media print {
    .navbar, .footer, .modal-overlay { display: none !important; }
    body { background: #fff !important; }
    .terms-page { padding: 0; }
    .terms-document { max-width: none; margin: 0; padding: 0; border: 0; background: #fff; color: #222; }
    .terms-document h1, .terms-document h2, .terms-document .terms-date, .terms-contact, .terms-document a { color: #222; }
    .terms-document-header, .terms-contact { border-color: #ccc; }
    .terms-document section { break-inside: avoid; }
}