.terms-page { margin: 0; background: #eef4ff; color: #10233f; font: 1rem/1.6 'Segoe UI', Arial, sans-serif; }
.terms-document { box-sizing: border-box; max-width: 860px; margin: 24px auto; padding: clamp(16px, 4vw, 32px); background: #fff; border: 1px solid #cbd8ea; border-radius: 16px; overflow-wrap: anywhere; }
.terms-document h1 { font-size: clamp(1.4rem, 5vw, 2rem); line-height: 1.25; }
.terms-rich-text p, .terms-rich-editor p { margin: 0 0 1em; }
.terms-rich-text p:last-child, .terms-rich-editor p:last-child { margin-bottom: 0; }
.terms-rich-text strong, .terms-rich-editor strong { font-weight: 700; }
.terms-rich-text [data-tone="navy"], .terms-rich-editor [data-tone="navy"] { color: #031833; }
.terms-rich-text [data-tone="blue"], .terms-rich-editor [data-tone="blue"] { color: #0a3f96; }
.terms-rich-text [data-tone="green"], .terms-rich-editor [data-tone="green"] { color: #14734d; }
.terms-rich-text [data-tone="red"], .terms-rich-editor [data-tone="red"] { color: #9b3038; }
.terms-rich-text [data-size="large"], .terms-rich-editor [data-size="large"] { font-size: 1.125em; }
.terms-rich-text [data-size="x-large"], .terms-rich-editor [data-size="x-large"] { font-size: 1.25em; }
.terms-rich-text [data-indent="1"], .terms-rich-editor [data-indent="1"] { padding-inline-start: 1.5rem; }
.terms-rich-text [data-indent="2"], .terms-rich-editor [data-indent="2"] { padding-inline-start: 3rem; }
.terms-rich-text [data-indent="3"], .terms-rich-editor [data-indent="3"] { padding-inline-start: 4.5rem; }
.terms-rich-text [data-indent="4"], .terms-rich-editor [data-indent="4"] { padding-inline-start: 6rem; }
.terms-document a { color: #0a3f96; display: inline-flex; align-items: center; min-height: 44px; }
.terms-editor button, .terms-editor select { box-sizing: border-box; min-height: 44px; max-width: 100%; }
.terms-editor label { display: block; margin-top: 16px; }
.terms-editor fieldset { min-width: 0; margin: 20px 0; padding: 16px; border: 1px solid #cbd8ea; border-radius: 10px; }
.terms-editor legend { max-width: 100%; overflow-wrap: anywhere; }
.terms-toolbar { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; margin: 14px 0; }
.terms-toolbar label { display: grid; gap: 4px; margin: 0; }
.terms-rich-editor { box-sizing: border-box; width: 100%; min-height: 60vh; padding: 14px; overflow-wrap: anywhere; background: #fff; color: #10233f; border: 1px solid #8094b2; border-radius: 8px; }
.terms-save { margin-top: 14px; }
.terms-document a:focus-visible, .terms-rich-editor:focus-visible, .terms-editor button:focus-visible, .terms-editor select:focus-visible { outline: 3px solid #0a3f96; outline-offset: 3px; }
@media (max-width: 480px) { .terms-document { margin: 12px; } .terms-editor fieldset { padding: 10px; } .terms-toolbar > * { flex: 1 1 140px; } .terms-toolbar select { width: 100%; } .terms-rich-text [data-indent="1"], .terms-rich-editor [data-indent="1"] { padding-inline-start: .75rem; } .terms-rich-text [data-indent="2"], .terms-rich-editor [data-indent="2"] { padding-inline-start: 1.5rem; } .terms-rich-text [data-indent="3"], .terms-rich-editor [data-indent="3"] { padding-inline-start: 2.25rem; } .terms-rich-text [data-indent="4"], .terms-rich-editor [data-indent="4"] { padding-inline-start: 3rem; } }