:root {
  color-scheme: light;
  --ink: #132033;
  --muted: #5b687a;
  --line: #dce4ee;
  --blue: #075e8e;
  --notice: #fff4d6;
  --notice-line: #c8840f;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: #f3f6fa; color: var(--ink); font-size: 16px; line-height: 1.68; }
a { color: var(--blue); }
.skip-link { position: fixed; top: 8px; left: 8px; transform: translateY(-180%); padding: 10px 14px; background: #fff; border: 2px solid var(--blue); z-index: 20; }
.skip-link:focus { transform: translateY(0); }
.legal-header { background: #071020; color: #fff; }
.legal-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: min(1080px, calc(100% - 36px)); min-height: 70px; margin: auto; }
.brand { color: #fff; text-decoration: none; font-size: 1.08rem; font-weight: 700; }
.back { color: #bcd0e7; text-decoration: none; }
.back:hover, .back:focus-visible { color: #fff; }
.legal-layout { display: grid; grid-template-columns: 250px minmax(0, 760px); gap: 46px; width: min(1080px, calc(100% - 36px)); margin: 38px auto 72px; align-items: start; }
.doc-nav { position: sticky; top: 24px; display: grid; gap: 7px; padding: 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.doc-nav a { padding: 8px 10px; border-radius: 8px; color: var(--muted); text-decoration: none; }
.doc-nav a:hover, .doc-nav a:focus-visible { background: #edf5fb; color: var(--blue); }
.doc-nav [aria-current="page"] { background: #e7f3fb; color: #064d77; }
.document { padding: clamp(24px, 5vw, 48px); border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 20px 55px rgba(22, 43, 68, 0.08); }
.document h1 { margin: 0 0 8px; font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.035em; }
.document h2 { margin: 34px 0 10px; font-size: 1.24rem; line-height: 1.3; }
.document p, .document li { color: #334258; }
.document ul { padding-left: 1.3rem; }
.meta { margin: 0 0 28px; color: var(--muted); font-size: 0.92rem; }
.draft { margin: 0 0 30px; padding: 15px 17px; border-left: 4px solid var(--notice-line); background: var(--notice); color: #563700; }
.pending { padding: 14px 16px; border: 1px dashed #bd7a0e; border-radius: 10px; background: #fffaf0; }
.contact-card { margin-top: 22px; padding: 18px; border-radius: 12px; background: #edf5fb; }
.contact-card p { margin: 5px 0; }
.legal-footer { margin-top: 38px; padding-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.9rem; }
:focus-visible { outline: 3px solid rgba(7, 94, 142, 0.45); outline-offset: 3px; }
@media (max-width: 800px) { .legal-layout { grid-template-columns: 1fr; gap: 18px; margin-top: 20px; } .doc-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .legal-nav { min-height: 62px; } .legal-layout { width: min(100% - 20px, 1080px); } .doc-nav { grid-template-columns: 1fr; } .document { padding: 24px 19px; } }
