:root {
  color-scheme: light;
  --bg: #eef1f7;
  --surface: #ffffff;
  --surface-alt: #f5f7fb;
  --text: #15223c;
  --muted: #45536e;
  --subtle: #7b88a4;
  --primary: #9a7000;
  --gold: #e5a50a;
  --gold-soft: #fbeecb;
  --gold-wash: #fef9ec;
  --border: #d5dce8;
  --focus: #9a7000;
  --card-shadow: 0 1px 2px rgba(21, 34, 60, 0.06), 0 1px 3px rgba(21, 34, 60, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, system-ui, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: #765500; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }

.wrap { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 10;
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand img { width: 38px; height: 38px; object-fit: contain; }

.nav-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.nav-link {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}
.nav-link:hover { color: var(--primary); text-decoration: underline; }
.nav-link-strong { color: var(--primary); }

.page-main { padding: 44px 0 56px; }
.hero {
  max-width: 920px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1.5;
  text-transform: uppercase;
}

h1, h2, h3 { color: var(--text); }
h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(34px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.04em;
}

/* The hero's h1 is the app's own name, not a slogan — it has to read as the
   product identity because Google's verifier matches the consent-screen app
   name against this heading. Sized down from the display h1 so the CSPC line
   above it still leads. */
.app-name { font-size: clamp(28px, 4vw, 40px); }

.lead {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.access-note {
  max-width: 720px;
  margin: 20px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--gold);
  color: var(--muted);
  font-size: 14px;
}

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.button {
  min-height: 44px;
  padding: 9px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--primary);
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease;
}
.button:hover { background: #846000; border-color: #846000; color: #fff; }
.button.secondary { background: var(--surface); color: var(--primary); border-color: var(--border); }
.button.secondary:hover { background: var(--gold-wash); border-color: var(--gold); color: var(--primary); }

.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.card, .about, .policy-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--card-shadow);
}
.card { padding: 20px; }
.card h2, .about h2 { margin: 0 0 6px; font-size: 18px; line-height: 1.35; }
.card p, .about p { margin: 0; color: var(--muted); }
.about { max-width: 920px; margin-top: 16px; padding: 22px; }
.about p + p, .about h2 + p { margin-top: 12px; }
.about h2 { margin-top: 22px; }
.about h2:first-child { margin-top: 0; }
.link-list { margin: 12px 0; padding-left: 22px; }
.link-list li { margin: 7px 0; color: var(--muted); }

.policy-main { max-width: 840px; padding: 32px 0 52px; }
.policy-card { padding: clamp(22px, 4vw, 36px); }
.policy-card h1 { font-size: clamp(30px, 4vw, 38px); }
.policy-card h2 { margin: 28px 0 8px; font-size: 20px; line-height: 1.35; }
.policy-card p { margin: 10px 0; }
.policy-card ul { padding-left: 22px; }
.policy-card li { margin: 7px 0; }

/* Scopes table. Google's data-handling reviewers look for the exact permission
   names, so they get their own block rather than being buried in prose. */
.data-table {
  width: 100%;
  margin: 14px 0;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table caption {
  margin-bottom: 8px;
  color: var(--subtle);
  font-size: 13px;
  text-align: left;
}
.data-table th, .data-table td {
  padding: 10px 12px;
  border: 1px solid var(--border);
  text-align: left;
  vertical-align: top;
}
.data-table th { background: var(--surface-alt); font-size: 13px; }
.data-table code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--surface-alt);
  font-size: 12px;
  word-break: break-all;
}
.updated {
  display: inline-block;
  margin: 10px 0 18px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--gold-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 650;
}
.callout { padding: 14px 16px; background: var(--gold-wash); border-left: 4px solid var(--gold); border-radius: 8px; }

.site-footer {
  padding: 18px 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 13px;
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 18px; }
.footer-links { display: inline-flex; flex-wrap: wrap; gap: 6px; }

@media (max-width: 720px) {
  .page-main { padding: 24px 0 40px; }
  .feature-grid { grid-template-columns: 1fr; }
  .hero { padding: 24px 20px; }
  .policy-main { padding: 20px 0 36px; }
  /* Horizontal scroll on a two-column table is worse than stacking it, and
     stacking keeps every cell inside the viewport on a phone. */
  .data-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data-table tr { display: block; margin-bottom: 14px; border: 1px solid var(--border); border-radius: 8px; }
  .data-table td { display: block; border: 0; border-top: 1px solid var(--border); }
  .data-table tr > td:first-child { border-top: 0; background: var(--surface-alt); font-weight: 700; }
}

@media (max-width: 720px) {
  .nav { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 0; }
  .nav-links { gap: 4px 16px; }
}

@media (max-width: 480px) {
  .wrap { width: min(calc(100% - 28px), 1160px); }
  .brand { font-size: 17px; }
  .brand img { width: 34px; height: 34px; }
  .actions { align-items: stretch; flex-direction: column; }
  .button { width: 100%; }
  .footer-inner { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
