/* Shared styling for the legal pages (/terms, /privacy). */
:root {
  --bg: #ffffff;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --hairline: #f0f0f0;
  --link: #0066cc;
}
:root[data-theme="dark"] {
  --bg: #0a0c11;
  --ink: #f5f5f7;
  --muted: #a1a1a6;
  --hairline: rgba(255, 255, 255, 0.10);
  --link: #2997ff;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

nav {
  background: var(--bg);
  border-bottom: 1px solid var(--hairline);
  height: 48px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 22px;
}
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: #0071e3; color: #ffffff;
  display: flex; align-items: center; justify-content: center;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 14px; font-weight: 600; line-height: 1;
}
.brand-name { font-size: 14px; font-weight: 600; letter-spacing: -0.12px; color: var(--ink); }
.nav-back { font-size: 12px; letter-spacing: -0.12px; color: var(--muted); }

main { flex: 1; padding: 56px 24px 72px; }
article { max-width: 680px; margin: 0 auto; }
h1 {
  margin: 0;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: clamp(30px, 4.5vw, 40px);
  font-weight: 600; line-height: 1.1; letter-spacing: -0.28px;
}
.page-meta { margin-top: 10px; font-size: 14px; letter-spacing: -0.224px; color: var(--muted); }
h2 {
  margin: 34px 0 0;
  font-family: "SF Pro Display", system-ui, -apple-system, sans-serif;
  font-size: 21px; font-weight: 600; line-height: 1.19; letter-spacing: 0.1px;
}
p, ul { margin: 10px 0 0; font-size: 15px; line-height: 1.55; letter-spacing: -0.224px; color: var(--muted); }
ul { padding-left: 20px; }
li { margin-top: 6px; }
p strong, li strong { color: var(--ink); font-weight: 600; }

.cookie-table { margin-top: 12px; border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.cookie-row {
  display: grid; grid-template-columns: 1fr 2fr 0.8fr; gap: 12px;
  padding: 10px 14px;
  font-size: 13px; letter-spacing: -0.12px; color: var(--muted);
  border-top: 1px solid var(--hairline);
}
.cookie-row.head { border-top: 0; font-weight: 600; color: var(--ink); }
.cname { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; }

footer {
  padding: 14px 68px 14px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  font-size: 12px; letter-spacing: -0.12px;
  color: var(--muted);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }

.theme-toggle {
  position: fixed; right: 18px; bottom: 18px; z-index: 45;
  width: 36px; height: 36px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  background: var(--bg); color: var(--muted);
  font-family: inherit; font-size: 14px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transition: transform 0.1s ease;
}
.theme-toggle:active { transform: scale(0.95); }
