/* =========================================================================
   Стиль юридических документов (политика, согласия) — в духе finombudsman.ru.
   ========================================================================= */
:root {
  --brand: #006b58;
  --brand-light: #008675;
  --brand-50: #edf5f4;
  --ink: #352f2a;
  --ink-2: #4a534f;
  --heading: #45504c;
  --muted: #686868;
  --border: #e7eceb;
  --sand-from: #e6d0bb;
  --sand-to: #edd5bc;
  --font: "Exo 2", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); background: #fff; color: var(--ink);
  font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand-light); }

.doc-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(255,255,255,0.9); backdrop-filter: saturate(170%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.doc-header .inner { max-width: 920px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; gap: 16px; }
.doc-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; }
.doc-brand img { width: 42px; height: 42px; object-fit: contain; border-radius: 11px; background: #fff; border: 1px solid var(--border); padding: 4px; }
.doc-brand b { font-weight: 700; font-size: 15px; color: var(--heading); line-height: 1.2; }
.doc-brand span { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.doc-back {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 600; font-size: 14px; color: var(--brand); text-decoration: none;
  border: 1.5px solid var(--border); border-radius: 9px; padding: 9px 16px; transition: background .2s, border-color .2s;
}
.doc-back:hover { background: var(--brand-50); border-color: var(--brand); }

.doc-wrap { max-width: 920px; margin: 0 auto; padding: 40px 24px 72px; }
.doc-title { font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem); font-weight: 700; color: var(--heading); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 8px; text-wrap: balance; }
.doc-sub { color: var(--muted); font-size: 14.5px; margin: 0 0 28px; }

.doc-meta {
  background: var(--brand-50); border: 1px solid #d6e9e4; border-radius: 14px;
  padding: 18px 22px; margin: 0 0 32px; font-size: 14.5px; line-height: 1.7;
}
.doc-meta b { color: var(--heading); }
.doc-meta a { font-weight: 600; }

.doc-body { font-size: 15.5px; color: var(--ink-2); line-height: 1.72; }
.doc-body p { margin: 0 0 13px; }
.doc-body h2 {
  font-size: 17px; font-weight: 700; color: var(--brand); letter-spacing: -0.01em;
  margin: 30px 0 12px; line-height: 1.3;
}
.doc-body .clause { padding-left: 2px; }
.doc-body p strong { color: var(--heading); }

.doc-foot { border-top: 1px solid var(--border); margin-top: 48px; padding-top: 26px; font-size: 13.5px; color: var(--muted); line-height: 1.65; }
.doc-foot .req { margin-bottom: 14px; }
.doc-foot .req b { color: var(--heading); }
.doc-foot .phone { font-weight: 700; color: var(--ink); font-size: 16px; text-decoration: none; }
.doc-foot .phone:hover { color: var(--brand); }
.doc-foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 14px; }
.doc-foot nav a { color: var(--muted); text-decoration: none; }
.doc-foot nav a:hover { color: var(--brand); text-decoration: underline; }
.doc-foot nav a.current { color: var(--brand); font-weight: 600; }

@media (max-width: 560px) {
  .doc-header .inner { padding: 12px 16px; }
  .doc-brand span { display: none; }
  .doc-wrap { padding: 28px 16px 56px; }
}
