:root {
  --paper: #fbfaf5;
  --paper-deep: #f2f0e7;
  --surface: #fffefa;
  --ink: #183323;
  --body: #4f5b52;
  --muted: #7a837c;
  --line: #dcded6;
  --green: #164c2e;
  --green-mid: #32724d;
  --green-soft: #e0eddc;
  --green-pale: #f0f5ec;
  --marigold: #dfae3d;
  --shadow: 0 18px 50px rgba(33, 50, 39, .12);
  --serif: Georgia, "Times New Roman", serif;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1000px 620px at 12% -10%, rgba(224, 237, 220, .9), transparent 62%),
    linear-gradient(180deg, var(--paper), var(--surface));
  font-family: var(--sans);
  line-height: 1.58;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; }

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px clamp(18px, 4vw, 58px);
  background: rgba(251, 250, 245, .91);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 27px;
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  width: 37px;
  height: 37px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  color: var(--body);
  font-size: 14px;
  font-weight: 650;
}

.nav-links a { text-decoration: none; }
.nav-links a:hover { text-decoration: underline; }

.legal-page {
  width: min(880px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 132px) 0 clamp(84px, 10vw, 138px);
}

.legal-kicker {
  margin-bottom: 14px;
  color: var(--green-mid);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.legal-title {
  margin-bottom: 18px;
  font-size: clamp(48px, 6vw, 74px);
  line-height: 1.02;
}

.legal-updated {
  margin-bottom: 46px;
  color: var(--muted);
  font-size: 15px;
}

.legal-card {
  padding: clamp(28px, 5vw, 54px);
  background: rgba(255, 254, 250, .84);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.legal-card h2 {
  margin: 42px 0 12px;
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.15;
}

.legal-card h2[id] { scroll-margin-top: 96px; }

.legal-card h2:first-child { margin-top: 0; }

.legal-card p,
.legal-card li {
  color: var(--body);
  font-size: 17px;
}

.legal-card p { margin-bottom: 18px; }
.legal-card ul { margin: 0 0 22px; padding-left: 22px; }
.legal-card li + li { margin-top: 8px; }
.legal-card strong { color: var(--ink); }

.command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 26px 0 12px;
}

.command-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.command-card h2 {
  margin: 0 0 10px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 750;
  letter-spacing: -.01em;
}

.command-card p {
  min-height: 48px;
  margin-bottom: 14px;
  font-size: 15px;
}

.command-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.command-list li {
  display: flex;
  align-items: center;
  margin: 0;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
  line-height: 1;
}

.legal-card .command-list li + li { margin-top: 0; }

.command-chip {
  display: inline-grid;
  place-items: center;
  box-sizing: border-box;
  height: 32px;
  padding: 0 10px;
  background: var(--green-pale);
  border: 1px solid var(--green-soft);
  border-radius: 999px;
  line-height: 1;
}

.guide-note {
  margin-top: 30px;
  padding: 20px 22px;
  color: var(--body);
  background: var(--green-pale);
  border: 1px solid var(--green-soft);
  border-radius: 16px;
}

.site-footer {
  padding: 34px clamp(18px, 4vw, 58px);
  color: var(--muted);
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.site-footer-inner {
  width: min(1220px, 100%);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
  font-size: 14px;
}

.site-footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--body);
  font-weight: 650;
}

.site-footer a { text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .nav-links a:not(.home-link) { display: none; }
  .legal-page { width: min(100% - 30px, 880px); padding-top: 58px; }
  .legal-card { border-radius: 14px; }
  .command-grid { grid-template-columns: 1fr; }
  .command-card p { min-height: 0; }
  .site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}
