@import url("/fonts.css");
/* Standalone policy pages (privacy, terms, EULA). They cannot load the app's stylesheets
   (scripts/test-legal-style-isolation.mjs), so the app's design tokens are repeated here,
   for the dark and the light theme, and the page follows the visitor's chosen theme. */
:root {
  color-scheme: dark;
  --legal-text: #f7f3ea; --legal-muted: #c8c5ba; --legal-line: #514b3c;
  --legal-accent: #ffca31; --legal-surface: #1c1c18; --legal-canvas: #080807;
  font-family: "Inter", sans-serif;
  color: var(--legal-text);
  background: var(--legal-canvas);
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}
:root[data-rw-theme="light"] {
  color-scheme: light;
  --legal-text: #111111; --legal-muted: #555555; --legal-line: #dedede;
  --legal-accent: #111111; --legal-surface: #f4f4f4; --legal-canvas: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; }
header, main, footer { width: min(760px, 100%); margin: auto; padding: 24px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
header > a { color: var(--legal-text); font-size: 22px; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }
a { color: var(--legal-accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
nav { display: flex; flex-wrap: wrap; gap: 16px; }
nav a { display: inline-flex; align-items: center; min-height: 44px; }
nav a[aria-current="page"] { color: var(--legal-text); text-decoration-thickness: 2px; }
h1 { margin: 8px 0 12px; font-size: clamp(26px, 4vw, 32px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; text-wrap: balance; }
h2 { margin: 32px 0 8px; font-size: 18px; font-weight: 600; line-height: 1.35; text-wrap: balance; }
p, li { overflow-wrap: anywhere; }
p { max-width: 68ch; color: var(--legal-muted); }
li { margin-bottom: 8px; color: var(--legal-muted); }
strong { color: var(--legal-text); font-weight: 600; }
.notice { padding: 14px 16px; border: 1px solid var(--legal-line); border-radius: 16px; background: var(--legal-surface); color: var(--legal-text); }
small { color: var(--legal-muted); font-size: 14px; }
a:focus-visible { outline: 2px solid var(--legal-accent); outline-offset: 3px; border-radius: 4px; }
footer { padding-bottom: 48px; border-top: 1px solid var(--legal-line); }
/* Inside the app's page viewer: no own header or footer, and the viewer's surface shows through. */
.embedded-legal, .embedded-legal body { background: transparent; }
.embedded-legal header, .embedded-legal footer { display: none; }
.embedded-legal main { max-width: 760px; padding: 8px 24px 48px; }
.embedded-legal h1 { margin-top: 0; }
@media (max-width: 520px) {
  header { align-items: flex-start; flex-direction: column; gap: 6px; }
  header, main, footer { padding: 20px; }
  .embedded-legal main { padding: 4px 16px 40px; }
  .embedded-legal h1 { font-size: 26px; }
}
