/* Shared styles for privacy-policy.html and terms.html, matching index.html. */
:root {
  --cream: #FFF6DC;
  --cream-2: #F7E6AE;
  --cream-3: #F3DC8F;
  --brown: #6B4423;
  --brown-dk: #4A2E17;
  --terra: #C8553D;
  --teal: #9CC5C0;
  --ink: #2B1A0C;
  --muted: #7A5B3E;
  --card: #FFFBEF;
  --line: rgba(107, 68, 35, .14);
  --display: "Bricolage Grotesque", "Inter", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: 400 17px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }

/* nav, same as the landing page */
nav.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
nav.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font: 800 24px/1 var(--display); color: var(--brown-dk); }
.brand img { width: 40px; height: 40px; border-radius: 11px; box-shadow: 0 0 0 1px var(--line); }
.brand .jp { font: 500 14px/1 var(--body); color: var(--muted); margin-left: 2px; }
.links { display: flex; align-items: center; gap: 28px; font-weight: 500; font-size: 15px; }
.links a { text-decoration: none; color: var(--brown); }
.links a:hover { color: var(--terra); }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px; border-radius: 999px;
  font: 600 14px/1 var(--body); text-decoration: none;
  background: var(--brown-dk); color: var(--cream) !important; box-shadow: 0 6px 0 #2B1A0C22;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) { .links a:not(.btn) { display: none; } }

/* page head */
.legal-head { padding: 48px 0 28px; text-align: center; position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 13px/1 var(--body); letter-spacing: .12em; text-transform: uppercase;
  color: var(--terra);
}
.eyebrow::before, .eyebrow::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.switch {
  display: inline-flex; gap: 4px; margin-top: 22px; padding: 5px;
  background: var(--cream-2); border-radius: 999px;
}
.switch a {
  padding: 10px 18px; border-radius: 999px; text-decoration: none;
  font: 600 14px/1 var(--body); color: var(--brown);
}
.switch a[aria-current="page"] { background: var(--brown-dk); color: var(--cream); }

/* the document */
.doc {
  max-width: 820px; margin: 0 auto 40px;
  background: var(--card); border: 1px solid var(--line); border-radius: 32px;
  padding: clamp(28px, 6vw, 64px);
  box-shadow: 0 30px 60px -40px #4A2E1755;
}
.doc h1, .doc h2, .doc h3 { font-family: var(--display); color: var(--brown-dk); letter-spacing: -.02em; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.02; font-weight: 800; margin: 0 0 12px; }
.doc .updated {
  display: inline-block; margin: 0 0 28px;
  font-size: 14px; font-weight: 600; color: var(--brown);
  background: var(--cream-2); padding: 6px 12px; border-radius: 999px;
}
.doc h2 {
  font-size: 26px; line-height: 1.15; font-weight: 800;
  margin: 48px 0 12px; padding-top: 28px; border-top: 1px solid var(--line);
}
.doc h3 { font-size: 19px; font-weight: 700; margin: 28px 0 8px; color: var(--brown); }
.doc p { margin: 0 0 16px; }
.doc ul { padding-left: 0; margin: 0 0 18px; list-style: none; }
.doc li { position: relative; padding-left: 26px; margin-bottom: 10px; }
.doc li::before {
  content: ""; position: absolute; left: 4px; top: .62em;
  width: 9px; height: 9px; border-radius: 50%; background: var(--terra);
}
.doc strong { color: var(--brown-dk); }
.doc a { color: var(--terra); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }

/* footer, same as the landing page */
footer.site { padding: 40px 0 40px; font-size: 15px; color: var(--muted); }
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 28px; justify-content: space-between; align-items: flex-start; }
footer.site .fl { display: flex; gap: 22px; flex-wrap: wrap; }
footer.site .fl a { text-decoration: none; }
footer.site .fl a:hover { color: var(--terra); }
footer.site .legal { width: 100%; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13px; }
