/* Shared styles for the static legal pages (privacy, terms, account deletion).
   Served as-is from public/ by the website and bundled into the Android app. */
:root {
  --teal: #00475c;
  --aqua: #48d7c9;
  --text: #1f2a30;
  --muted: #55646b;
  --bg: #ffffff;
  --panel: #f2f7f8;
  --border: #d9e4e7;
  --link: #00677f;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #e6eef0;
    --muted: #a9b9be;
    --bg: #0d1b20;
    --panel: #13262d;
    --border: #22404a;
    --link: #48d7c9;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  padding-top: env(safe-area-inset-top);
  padding-bottom: env(safe-area-inset-bottom);
}

header.legal-header {
  background: var(--teal);
  color: #fff;
  padding: 20px 16px;
}

header.legal-header .inner,
main {
  max-width: 820px;
  margin: 0 auto;
}

header.legal-header a.brand {
  color: var(--aqua);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.02em;
}

header.legal-header h1 {
  margin: 6px 0 0;
  font-size: 1.6rem;
}

header.legal-header .lang-switch {
  margin-top: 8px;
  font-size: 0.9rem;
}

header.legal-header .lang-switch a { color: #fff; }

main { padding: 8px 16px 48px; }

h2 {
  color: var(--link);
  margin-top: 32px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--border);
  font-size: 1.25rem;
}

h3 { margin-top: 20px; font-size: 1.05rem; }

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

ul { padding-left: 20px; }
li { margin: 6px 0; }

.meta,
.callout {
  background: var(--panel);
  border-left: 4px solid var(--aqua);
  padding: 12px 16px;
  margin: 20px 0;
  border-radius: 4px;
}

.meta { color: var(--muted); font-size: 0.95rem; }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  font-size: 0.95rem;
}

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

th { color: var(--muted); font-weight: 600; }

@media (max-width: 600px) {
  table, thead, tbody, tr, th, td { display: block; }
  thead { display: none; }
  td { border-bottom: none; padding: 2px 0; }
  tr { border-bottom: 1px solid var(--border); padding: 8px 0; }
}

/* Owner-supplied details still to be filled in before publishing. */
.pending {
  background: #fff3c4;
  color: #5a4500;
  padding: 0 4px;
  border-radius: 3px;
}

hr.lang-divider {
  margin: 56px 0 8px;
  border: none;
  border-top: 2px solid var(--border);
}

footer.legal-footer {
  max-width: 820px;
  margin: 0 auto;
  padding: 16px 16px 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Language switcher and per-language sections (all languages live in the same page). */
[hidden] { display: none !important; }

header.legal-header .lang-switch a[aria-current="true"] {
  font-weight: 700;
  text-decoration: none;
}

.translation-notice {
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
  margin: 20px 0 0;
}
