:root {
  --paper: #f5f4ef;
  --ink: #121719;
  --muted: #59666a;
  --line: #cbd2d1;
  --steel: #195b68;
  --steel-pale: #dcecef;
  --white: #fffefa;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; text-underline-offset: 3px; }

a:focus-visible {
  outline: 3px solid var(--steel);
  outline-offset: 4px;
}

.wrap { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }

header {
  border-bottom: 1px solid var(--line);
  background: rgba(245, 244, 239, .96);
}

.nav {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 750; }
.brand img { width: 38px; height: 38px; border-radius: 9px; }
.nav-links { display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; }

.hero {
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  gap: 42px;
  padding: 76px 0 58px;
  border-bottom: 1px solid var(--line);
}

.hero-icon { width: 158px; height: 158px; border-radius: 28px; box-shadow: 0 12px 28px rgba(18, 23, 25, .13); }
h1, h2 { letter-spacing: -.035em; line-height: 1.08; }
h1 { max-width: 720px; margin: 0 0 20px; font-size: clamp(40px, 7vw, 76px); }
h2 { margin: 0 0 14px; font-size: 29px; }
p { max-width: 720px; margin: 0 0 16px; }
.lead { color: var(--muted); font-size: 20px; }

.principles { padding: 58px 0; }
.rule { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 28px; padding: 28px 0; border-top: 1px solid var(--line); }
.rule:last-child { border-bottom: 1px solid var(--line); }
.rule-number { color: var(--steel); font-weight: 750; font-size: 14px; }
.rule p { color: var(--muted); }

.notice { margin: 0 0 58px; padding: 28px; background: var(--steel-pale); border-left: 5px solid var(--steel); }
.notice h2 { font-size: 23px; }

.legal { padding: 54px 0 72px; }
.legal main { max-width: 760px; }
.legal h1 { font-size: clamp(38px, 6vw, 60px); }
.legal h2 { margin-top: 38px; font-size: 25px; }
.legal li { margin: 8px 0; }
.updated { color: var(--muted); font-size: 14px; }

footer { border-top: 1px solid var(--line); padding: 26px 0 44px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }

@media (prefers-color-scheme: dark) {
  :root { --paper: #111719; --ink: #f4f3ed; --muted: #b6c0c1; --line: #364143; --steel: #83c8d4; --steel-pale: #18363c; --white: #182023; }
  header { background: rgba(17, 23, 25, .96); }
  .hero-icon { box-shadow: 0 12px 28px rgba(0, 0, 0, .35); }
}

@media (max-width: 620px) {
  .wrap { width: min(100% - 32px, 1040px); }
  .nav { padding: 14px 0; align-items: flex-start; flex-direction: column; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding: 48px 0; }
  .hero-icon { width: 112px; height: 112px; border-radius: 21px; }
  .rule { grid-template-columns: 1fr; gap: 8px; }
}
