/* ============================================================
         Pycheetoo — same tokens as index.html
         ============================================================ */

:root {
  --paper: #faf7f0;
  --surface: #ffffff;
  --line: #e3e3de;
  --line-soft: #ededea;
  --ink: #14161b;
  --ink-dim: #565c68;
  --muted: #6e7480;
  --key: #161616;
  --key-deep: #414141;
  --key-soft: rgba(22, 22, 22, 0.1);
  --sans: "Archivo", "Noto Sans JP", "Hiragino Kaku Gothic ProN",
          "Yu Gothic", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;
  --gutter: 1.5rem;
}

*,
      *::before,
      *::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-variation-settings: "wdth" 100;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

.hidden {
  display: none;
}

/* ---------- top bar ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.875rem var(--gutter);
  background: rgba(250, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.mark {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.mark::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--key);
  box-shadow: 0 0 0 4px var(--key-soft);
}

.mark:hover {
  color: var(--key);
}

.langswitch {
  display: flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.langswitch button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.langswitch button:hover {
  color: var(--ink);
}

.langswitch button.is-active {
  background: var(--ink);
  color: var(--surface);
}

/* ---------- document header ---------- */

.doc-head {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 9vw, 6rem) var(--gutter) clamp(3rem, 6vw, 4.5rem);
  border-bottom: 1px solid var(--line);
  background:
          radial-gradient(
            110% 90% at 10% 0%,
            rgba(22, 22, 22, 0.035),
            transparent 60%
          ),
          repeating-linear-gradient(
            90deg,
            var(--line-soft) 0 1px,
            transparent 1px 96px
          );
}

.doc-head-inner {
  max-width: 46rem;
  margin: 0 auto;
}

.doc-head h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.25rem, 6vw, 3.5rem);
  font-variation-settings: "wdth" 114;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.doc-head .kicker {
  margin: 1.25rem 0 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.4em;
  color: var(--muted);
}

.doc-head .label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--key);
}

/* ---------- document body ---------- */

main {
  max-width: 46rem;
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.5rem) var(--gutter) 0;
}

.policy-content {
  counter-reset: clause;
}

.policy-content section {
  position: relative;
  padding: 2.5rem 0;
  border-top: 1px solid var(--line);
}

.policy-content section:first-child {
  border-top: 0;
  padding-top: 0;
}

.policy-content h2 {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-variation-settings: "wdth" 106;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.5;
}

/* legal clauses are genuinely numbered — the index is citable, not decorative */

.policy-content h2::before {
  counter-increment: clause;
  content: counter(clause, decimal-leading-zero);
  flex: none;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--key);
}

.policy-content p {
  margin: 0 0 1rem;
  color: var(--ink-dim);
  line-height: 1.95;
}

.policy-content p:last-child {
  margin-bottom: 0;
}

.policy-content strong {
  color: var(--ink);
  font-weight: 700;
}

.policy-content .app {
  color: var(--key);
  font-weight: 700;
}

.policy-content a {
  color: var(--key);
  text-decoration: none;
  border-bottom: 1px solid rgba(22, 22, 22, 0.35);
  padding-bottom: 0.1rem;
}

.policy-content a:hover {
  color: var(--key-deep);
  border-color: #414141;
}

.policy-content .mail {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--mono);
  font-size: 1rem;
}

/* callout list — data collected / purpose of use */

.policy-content ul {
  list-style: none;
  margin: 0 0 1rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 2px solid #161616;
  border-radius: 8px;
}

.policy-content li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-dim);
}

.policy-content li + li {
  margin-top: 0.5rem;
}

.policy-content li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 7px;
  height: 7px;
  background: #b9b9b2;
  transform: rotate(45deg);
}

.policy-content .platforms {
  display: grid;
  gap: 1rem;
}

/* ---------- footer ---------- */

.updated {
  margin: 4rem 0 0;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.updated span {
  color: var(--key);
}

footer {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: 3rem var(--gutter);
  border-top: 1px solid var(--line);
  text-align: center;
  font-family: var(--mono);
  font-size: 0.625rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #a8a8a1;
}

:focus-visible {
  outline: 2px solid #161616;
  outline-offset: 3px;
  border-radius: 2px;
}

/* primary nav (shared vocabulary with the rest of the site) */

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
  margin: 0 auto 0 2.5rem;
}

@media (min-width: 720px) {
.nav {
  display: flex;
}

}

.nav a {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav a:hover {
  color: var(--ink);
}

.foot-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem 2rem;
  margin-bottom: 2rem;
}

.foot-link {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.25rem;
}

.foot-link:hover {
  color: var(--key);
  border-color: #161616;
}

/* disabled / coming-soon items (Tools on hold) */

.nav .nav-disabled {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  opacity: 0.55;
  cursor: not-allowed;
}

.foot-link.is-disabled,
      .foot-link.is-disabled:hover {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  opacity: 0.55;
  border-bottom-color: transparent;
  cursor: not-allowed;
}

.soon-tag {
  font-family: var(--mono);
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.12rem 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
}

/* Warm accent identifies links; document labels stay neutral. */

.doc-head .label, .policy-content h2::before, .updated span {
  color: var(--ink-dim);
}

.policy-content .app, .mark:hover {
  color: var(--ink);
}

.policy-content a {
  color: #161616;
}

.policy-content a:hover, .foot-link:not(.is-disabled):hover {
  color: #414141;
}
