/* rar document pages (terms, apply) on the design system. Loaded after /design/bundle-rar.css,
   which brings the tokens, the type, the form fields (.field) and the landing header (.r-nav).
   Tokens only, radius 0, hairlines, no shadows. */

body { font-family: var(--font-body); background: var(--bg); color: var(--text); min-height: 100vh; display: flex; flex-direction: column; }
.r-doc { width: 100%; max-width: 760px; margin: 0 auto; padding: 56px var(--gutter) 80px; flex: 1; }
.r-doc--narrow { max-width: 600px; }
.r-doc h1 { font-family: var(--font-display-rar); font-weight: 700; font-size: clamp(2rem, 5vw, 2.75rem); line-height: 1.1; margin-bottom: 14px; }
.r-doc h1 .r-accent { color: var(--accent); }                  /* large type: rar-blue is allowed */
.r-doc .lead, .r-doc .sub { font-size: 1.0625rem; line-height: 1.6; color: var(--text-muted); max-width: 56ch; }
.r-doc .eff { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; color: var(--text-label-sm); margin: 10px 0 40px; }
.r-doc a { color: var(--accent-text); }

/* terms: numbered sections, the number in mono blue, hairline between sections */
.r-doc section { padding: 22px 0; border-top: var(--hairline); }
.r-doc section h2 { font-family: var(--font-display-rar); font-weight: 700; font-size: 1.125rem; display: flex; gap: 12px; align-items: baseline; margin-bottom: 10px; }
.r-doc section h2 .num { font-family: var(--font-mono); font-weight: 400; font-size: 0.875rem; color: var(--accent-text); min-width: 2ch; font-variant-numeric: tabular-nums; }
.r-doc section p, .r-doc section li { font-size: 1rem; line-height: 1.7; color: var(--text); }
.r-doc section p + p { margin-top: 10px; }
.r-doc section ul { margin: 8px 0 8px 20px; }
.r-doc .sub-h, .r-doc section .sub { font-weight: 600; color: var(--text); }

/* apply: one panel, real fields from components.css */
.r-doc .card { margin-top: 32px; background: var(--surface); border: 1px solid var(--line-strong); padding: 28px; }
.r-doc .field { margin-bottom: 20px; }
.r-doc .field + .field { margin-top: 0; }
.r-doc .req { color: var(--accent-text); }
.r-doc textarea { resize: vertical; min-height: 96px; }
.r-doc .check-row { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--text-muted); margin: 4px 0 18px; cursor: pointer; }
.r-doc .check-row input { margin-top: 3px; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.r-doc .cf-turnstile { margin-bottom: 20px; }
.r-doc .msg { display: none; margin-top: 16px; padding: 12px 14px; font-size: 0.875rem; border: 1px solid var(--line-strong); }
.r-doc .msg.err { display: block; color: var(--status-failed); border-color: var(--status-failed); }
.r-doc .msg.ok { display: block; color: var(--accent-text); }
.r-doc .fine { font-size: 0.8125rem; color: var(--text-muted); margin-top: 18px; }
.r-doc .done h2 { font-family: var(--font-display-rar); font-size: 1.5rem; margin-bottom: 10px; }
.r-doc .done p { color: var(--text-muted); }

/* phone + country picker: same field look, a plain list, no pill, no shadow */
.r-doc .phone-row { display: flex; gap: 8px; }
.ctry { position: relative; flex: 0 0 auto; }
.ctry-btn { display: flex; align-items: center; gap: 7px; min-height: 44px; height: 100%; padding: 0 11px; background: var(--well); border: 1px solid var(--line-control); color: var(--text); font: inherit; font-size: 0.9375rem; cursor: pointer; white-space: nowrap; }
.ctry-btn:hover, .ctry.open .ctry-btn { border-color: var(--line-hover); }
.ctry-flag { display: block; object-fit: cover; }
.ctry-dial, .ctry-row .dl { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ctry-pop { position: absolute; top: calc(100% + 4px); left: 0; z-index: 50; width: 300px; max-width: 80vw; background: var(--surface); border: 1px solid var(--line-strong); padding: 8px; }
.ctry-search { width: 100%; min-height: 40px; padding: 8px 10px; background: var(--well); border: 1px solid var(--line-control); color: var(--text); font: inherit; font-size: 0.875rem; margin-bottom: 6px; }
.ctry-search:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 0; }
.ctry-list { max-height: 262px; overflow-y: auto; }
.ctry-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 8px 10px; border: 0; border-left: 2px solid transparent; background: none; color: var(--text); font: inherit; font-size: 0.875rem; text-align: left; cursor: pointer; }
.ctry-row:hover, .ctry-row:focus-visible { background: var(--select); border-left-color: var(--accent); }
.ctry-row .nm { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ctry-row .dl { color: var(--text-muted); }
.ctry-empty { padding: 14px; color: var(--text-muted); font-size: 0.8125rem; }

.r-doc-foot { border-top: var(--hairline); padding: 22px var(--gutter); display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.06em; color: var(--text-muted); }
.r-doc-foot a { color: var(--accent-text); text-decoration: none; }
@media (max-width: 480px) { .r-doc .card { padding: 20px 16px; } }
.r-doc .phone-row .phone-num { flex: 1; min-width: 0; }
