/* Audora — legal & support site.
   Palette taken verbatim from lib/core/theme/ambient_theme.dart so the site
   and the app are literally the same colours, not an approximation.
   No JavaScript anywhere on this site, and no third-party resources: every
   font is a system stack, so the legal pages load with no external requests. */

:root {
  --surface: #0b0c0f;
  --surface-raised: #14161b;
  --hairline: #23262e;
  --text-primary: #f2f4f7;
  --text-secondary: #8a8f9a;
  --text-tertiary: #5c616c;
  --accent: #e5a344;
  --accent-muted: #6b4e20;

  --measure: 42rem;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: var(--measure);
  margin: 0 auto;
  padding: 2rem 1.25rem 4rem;
}

/* ---------------------------------------------------------------- masthead */

header.site {
  border-bottom: 1px solid var(--hairline);
  background: var(--surface-raised);
}

header.site .wrap {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.brand {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

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

.brand-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-tertiary);
}

nav.site {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
}

nav.site a {
  font-size: 0.95rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

nav.site a:hover,
nav.site a:focus-visible { color: var(--text-primary); border-bottom-color: var(--accent); }

nav.site a[aria-current="page"] { color: var(--accent); border-bottom-color: var(--accent); }

/* ------------------------------------------------------------------ typography */

h1 {
  font-size: 2rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

h2 {
  font-size: 1.2rem;
  line-height: 1.3;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hairline);
}

h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
  color: var(--text-primary);
}

p { margin: 0 0 1rem; }

ul { margin: 0 0 1rem; padding-left: 1.25rem; }

li { margin-bottom: 0.45rem; }

a { color: var(--accent); }

a:hover, a:focus-visible { color: var(--text-primary); }

strong { color: var(--text-primary); font-weight: 600; }

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 4px;
  padding: 0.1em 0.35em;
  color: var(--text-primary);
  overflow-wrap: anywhere;
}

.lede {
  font-size: 1.05rem;
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

.meta {
  font-size: 0.85rem;
  color: var(--text-tertiary);
  margin: 0 0 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hairline);
}

/* ---------------------------------------------------------------- components */

.card {
  background: var(--surface-raised);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 1.25rem 1.4rem;
  margin: 0 0 1.25rem;
}

.card h3 { margin-top: 0; }

.card :last-child { margin-bottom: 0; }

/* Used for the "what is never transmitted" list — the strongest claim on the
   page, so it gets the accent edge rather than being buried in prose. */
.callout {
  border-left: 3px solid var(--accent);
  background: var(--surface-raised);
  border-radius: 0 8px 8px 0;
  padding: 1.1rem 1.3rem;
  margin: 1.5rem 0;
}

.callout :last-child { margin-bottom: 0; }

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

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

th { color: var(--text-tertiary); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; }

.scroll-x { overflow-x: auto; }

footer.site {
  border-top: 1px solid var(--hairline);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--text-tertiary);
}

footer.site a { color: var(--text-secondary); }

footer.site p { margin-bottom: 0.4rem; }

/* --------------------------------------------------------------------- 404 */

.center { text-align: center; padding-top: 4rem; }

/* ------------------------------------------------------------ small screens */

@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 1.5rem 1rem 3rem; }
  h1 { font-size: 1.65rem; }
  nav.site { gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
