/* Styling for the public legal / marketing pages served straight from S3
   (about.html, privacy.html, terms.html). Deliberately framework-free: these
   pages must render without the SPA bundle so that reviewers and crawlers
   always see the text. Colors follow branding/brand-assets.md. */

:root {
  --orange: #ff8200;
  --orange-hover: #ff7800;
  --heading: #1b1b1b;
  --text: #333333;
  --muted: #666666;
  --rule: #e5e5e5;
  --surface: #ffffff;
  --surface-alt: #faf9f7;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--surface-alt);
  color: var(--text);
  font:
    16px/1.65 system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 1.25rem 4rem;
}

header.site {
  background: var(--surface);
  border-bottom: 3px solid var(--orange);
}

header.site .wrap {
  padding: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  align-items: baseline;
  justify-content: space-between;
}

.brand {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--heading);
  text-decoration: none;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand img {
  display: block;
  border-radius: 7px;
}

.brand span {
  color: var(--orange);
}

nav.site a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  margin-left: 1.1rem;
}

nav.site a:hover,
nav.site a:focus {
  color: var(--orange-hover);
  text-decoration: underline;
}

main {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 2rem 1.75rem 2.5rem;
}

@media (max-width: 30rem) {
  main {
    padding: 1.5rem 1.1rem 2rem;
  }
}

h1 {
  color: var(--heading);
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

h2 {
  color: var(--heading);
  font-size: 1.15rem;
  margin: 2.25rem 0 0.6rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--rule);
}

h3 {
  color: var(--heading);
  font-size: 1rem;
  margin: 1.4rem 0 0.4rem;
}

/* Home-page hero: the app logo beside the app NAME as the h1 — Google brand
   verification requires the consent-screen name and logo to appear here. */
.hero {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  margin-bottom: 1.4rem;
}

.hero-mark {
  display: block;
  border-radius: 17px;
  flex: 0 0 auto;
}

.hero h1 {
  margin: 0;
}

.tagline {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
}

@media (max-width: 30rem) {
  .hero {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.85rem;
  }

  .hero-mark {
    width: 58px;
    height: 58px;
    border-radius: 13px;
  }
}

/* First heading right under the hero: drop the section rule and the big gap so
   the "what this app does" block sits above the fold (Google's brand review
   reads the top of the page). */
.hero + h2 {
  border-top: 0;
  margin-top: 0.75rem;
  padding-top: 0;
}

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

.meta {
  color: var(--muted);
  font-size: 0.875rem;
  margin: 0 0 1.5rem;
}

.lede {
  font-size: 1.05rem;
}

a {
  color: var(--orange-hover);
}

a:hover,
a:focus {
  color: var(--heading);
}

ul,
ol {
  padding-left: 1.25rem;
}

li {
  margin: 0.35rem 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0.75rem 0 1rem;
  font-size: 0.925rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.55rem 0.6rem;
  border-bottom: 1px solid var(--rule);
}

th {
  color: var(--heading);
  background: var(--surface-alt);
  font-weight: 700;
}

code {
  background: var(--surface-alt);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 0.05rem 0.3rem;
  font-size: 0.875em;
  overflow-wrap: anywhere;
}

.callout {
  background: var(--surface-alt);
  border-left: 4px solid var(--orange);
  border-radius: 0 8px 8px 0;
  padding: 0.9rem 1.1rem;
  margin: 1.25rem 0;
}

.callout p {
  margin: 0;
}

.btn {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 0.6rem 1.15rem;
  border-radius: 8px;
}

.btn:hover,
.btn:focus {
  background: var(--orange-hover);
  color: #fff;
}

footer.site {
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
  padding: 1.75rem 1.25rem 0;
}

footer.site a {
  margin: 0 0.4rem;
}

@media print {
  body {
    background: #fff;
  }

  header.site,
  nav.site {
    border: 0;
  }

  main {
    border: 0;
  }
}
