/* LPと同じ無加工のGambarino、紙・墨・紙目を使う。 */
@font-face {
  font-family: "Gambarino";
  src: url("fonts/Gambarino-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #F6F4F0;
  --ink: #1B1A17;
  --dim: #6F6B63;
  --line: #E4E0D8;
  --sans: -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Hiragino Sans", sans-serif;
  --display: "Gambarino", Georgia, "Times New Roman", serif;
  --gutter: clamp(28px, 6vw, 110px);
  --grain-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='2' seed='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .106 0 0 0 0 .102 0 0 0 0 .09 .19 0 0 0 -.064'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23g)'/%3E%3C/svg%3E");
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--grain-ink), var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--paper); }

.legal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  max-width: 1440px;
  margin: 0 auto;
  padding: 18px var(--gutter);
}

.legal-brand {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  min-width: 44px;
}
.legal-brand img { display: block; height: 24px; width: auto; opacity: .94; }

.legal-header nav { display: flex; flex-wrap: wrap; gap: 0 8px; }
.legal-header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 14px;
  color: var(--dim);
  text-decoration: none;
}
.legal-header nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 500;
}
.legal-header nav a:hover { color: var(--ink); text-decoration: none; }

main {
  max-width: 728px;
  margin: 0 auto;
  padding: 64px 24px 80px;
  overflow-wrap: anywhere;
}

h1, h2 { font-family: var(--display); font-weight: 400; }
h1 { margin: 0 0 16px; font-size: clamp(44px, 8vw, 72px); line-height: 1.08; }
h2 { margin: 40px 0 12px; font-size: 28px; line-height: 1.2; }
p, li { line-height: 1.7; }
p { margin: 0 0 20px; }
.updated { margin-bottom: 36px; color: var(--dim); font-size: 14px; }

.legal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 728px;
  margin: 0 auto;
  padding: 0 24px 32px;
  font-size: 13px;
  color: var(--dim);
}
.legal-footer p { margin: 0; }
.legal-footer a { display: inline-flex; align-items: center; min-height: 44px; }

@media (max-width: 820px) {
  :root { --gutter: 24px; }
  .legal-brand { min-height: 44px; }
  .legal-brand img { height: 20px; }
  main { padding-top: 40px; padding-bottom: 56px; }
  h2 { font-size: 25px; }
}
@media (max-width: 420px) {
  .legal-header nav { flex-basis: 100%; margin-left: -8px; }
}
