/*
 * Styles for the static policy documents in public/privacy and public/terms.
 *
 * These pages are plain HTML served straight from Firebase Hosting so that a
 * client which never runs JavaScript — such as Google's OAuth verification
 * checker — reads the full text. That means they cannot use the app's bundled
 * stylesheet, whose filename is content-hashed at build time. This file is
 * copied verbatim from public/ and linked by both documents.
 *
 * Brand tokens are duplicated from src/styles/global.css on purpose: a static
 * file cannot import them, and these three colours are the stable part of the
 * palette.
 */
:root {
  --navy: #0b1d3d;
  --cyan: #32b2b3;
  --ink: #131b1e;
  --muted: #4f636a;
  --surface: #f4f7f7;
  --surface-strong: #ffffff;
  --line: #d4dedd;
  --primary: #197a7b;

  color: var(--ink);
  background: var(--surface);
  font-family: "Lato", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  padding: clamp(16px, 3vw, 40px) clamp(16px, 4vw, 40px) 64px;
  background:
    linear-gradient(90deg, rgba(25, 122, 123, 0.09) 1px, transparent 1px),
    linear-gradient(0deg, rgba(25, 122, 123, 0.07) 1px, transparent 1px),
    var(--surface);
  background-size: 48px 48px;
}

.policy-page {
  max-width: 74ch;
  margin: 0 auto;
}

.policy-eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.policy-app-name {
  margin: 2px 0 20px;
  font-family: "Barlow Semi Condensed", "Lato", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.policy-body {
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface-strong);
  border: 1px solid var(--line);
  border-radius: 14px;
  line-height: 1.6;
}

.policy-body h1 {
  margin: 0;
  font-family: "Barlow Semi Condensed", "Lato", sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.2rem);
}

.policy-updated {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.policy-intro {
  margin-top: 20px;
  font-size: 1.05rem;
}

.policy-body section {
  margin-top: 32px;
}

.policy-body h2 {
  margin: 0 0 8px;
  font-family: "Barlow Semi Condensed", "Lato", sans-serif;
  font-size: 1.25rem;
  color: var(--navy);
}

.policy-body p,
.policy-body li {
  margin: 0 0 12px;
}

.policy-body ul {
  margin: 0 0 12px;
  padding-left: 22px;
}

.policy-body code {
  padding: 1px 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9em;
  /* Scope strings are long; wrap rather than widening the page. */
  overflow-wrap: anywhere;
}

/*
 * The Limited Use statement is the sentence a Google reviewer looks for.
 * Setting it apart makes it findable without reading every paragraph.
 */
.policy-callout {
  padding: 12px 14px;
  background: var(--surface);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
}

.policy-body a {
  color: var(--primary);
}

.policy-footer {
  margin-top: 24px;
  font-size: 0.9rem;
}

.policy-footer a {
  color: var(--muted);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}
