@font-face {
  font-family: "Inter";
  src: url("./assets/inter-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "Space Grotesk";
  src: url("./assets/space-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f7f5ef;
  --surface: #fffdf8;
  --ink: #171917;
  --text: #444943;
  --muted: #62675f;
  --line: #deddd6;
  --accent: #ffcf32;
  font-family: "Inter", system-ui, sans-serif;
  color: var(--text);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; border-top: 5px solid var(--accent); }
a { color: inherit; text-underline-offset: 4px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 3px solid var(--ink); outline-offset: 5px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--ink); }
.wrap { width: min(1120px, calc(100% - 80px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); background: var(--surface); }
.site-header .wrap { min-height: 90px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 24px/1 "Space Grotesk", system-ui, sans-serif; }
.brand img { width: 36px; height: 36px; }
.header-note { color: var(--muted); font-size: 13px; }
.skip-link { position: absolute; top: -90px; left: 20px; padding: 12px 18px; background: var(--accent); color: var(--ink); z-index: 2; }
.skip-link:focus { top: 15px; }
.page-heading { padding: 64px 0 40px; border-bottom: 1px solid var(--line); }
h1 { max-width: 780px; margin: 0 0 20px; color: var(--ink); font: 600 clamp(34px, 4.5vw, 52px)/1.13 "Space Grotesk", system-ui, sans-serif; letter-spacing: -1.6px; text-wrap: balance; }
.updated { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.7; }
.policy-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 76px; padding-block: 48px 72px; align-items: start; }
.contents { position: sticky; top: 32px; }
.contents h2 { margin: 0 0 15px; color: var(--ink); font-size: 14px; font-weight: 600; }
.contents ul { list-style: none; margin: 0; padding: 0; }
.contents li + li { margin-top: 7px; }
.contents a { display: block; padding: 6px 0; font-size: 13px; line-height: 1.65; text-decoration: none; }
.contents a:hover { text-decoration: underline; text-decoration-color: var(--ink); }
article { min-width: 0; font-size: 16px; line-height: 1.85; overflow-wrap: anywhere; }
article > p:first-child { margin-top: 0; font-size: 17px; color: var(--ink); }
article p { margin: 0 0 20px; }
article h2 { margin: 42px 0 18px; padding-top: 30px; border-top: 1px solid var(--line); color: var(--ink); font: 600 25px/1.3 "Space Grotesk", system-ui, sans-serif; letter-spacing: -0.5px; scroll-margin-top: 28px; }
article ul { padding-left: 23px; margin: 22px 0 26px; }
article li { padding-left: 7px; margin-bottom: 19px; }
article li::marker { color: var(--ink); font-size: 0.8em; }
article strong { color: var(--ink); font-weight: 600; }
.site-footer { border-top: 1px solid var(--line); background: var(--surface); }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; padding-block: 27px; font-size: 13px; color: var(--muted); }
.site-footer p { margin: 0; }

@media (max-width: 900px) {
  .wrap { width: min(760px, calc(100% - 48px)); }
  .policy-layout { grid-template-columns: 1fr; gap: 32px; padding-top: 32px; }
  .contents { position: static; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
  .contents ul { display: grid; grid-template-columns: 1fr 1fr; column-gap: 24px; }
  .contents li + li { margin-top: 0; }
  .page-heading { padding: 44px 0 30px; }
}

@media (max-width: 520px) {
  .wrap { width: calc(100% - 40px); }
  .site-header .wrap { min-height: 76px; }
  .brand { font-size: 22px; }
  .brand img { width: 32px; height: 32px; }
  .header-note { display: none; }
  h1 { letter-spacing: -1px; }
  .contents ul { grid-template-columns: 1fr; }
  article { font-size: 15px; }
  article > p:first-child { font-size: 16px; }
  article h2 { font-size: 23px; }
  .site-footer .wrap { flex-wrap: wrap; }
}

@media print {
  :root { background: white; color: black; }
  body { border: 0; }
  .wrap { width: 100%; }
  .site-header, .contents, .site-footer, .skip-link { display: none; }
  .page-heading { padding-top: 0; }
  .policy-layout { display: block; padding-block: 24px 0; }
  article { font-size: 11pt; line-height: 1.6; }
  article h2 { break-after: avoid; font-size: 16pt; }
  article p, article li { orphans: 3; widows: 3; }
}
