/* Shared stylesheet for Receipt Wallet's Privacy Policy & Terms of Use.
   Plain, readable, print-friendly — legal pages don't need much more
   than that. Mirrors universal_tv_remote's urm/legal.css, swapped to
   Receipt Wallet's teal brand color. */

:root {
  --accent: #0d9488;
  --text: #171a1f;
  --text-muted: #667085;
  --bg: #ffffff;
  --bg-alt: #f6f7f8;
  --border: #e7e9ec;
  --max-width: 760px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

header.masthead {
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
  padding-bottom: 24px;
}

header.masthead .app-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--accent);
  text-transform: uppercase;
  margin: 0 0 8px;
}

header.masthead h1 {
  font-size: 32px;
  margin: 0 0 8px;
  line-height: 1.2;
}

header.masthead .effective-date {
  color: var(--text-muted);
  font-size: 14px;
  margin: 0;
}

nav.doc-switch {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

nav.doc-switch a {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

nav.doc-switch a.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}

nav.doc-switch a:not(.active):hover {
  background: var(--bg-alt);
}

h2 {
  font-size: 20px;
  margin: 40px 0 12px;
  padding-top: 8px;
}

h2:first-of-type {
  margin-top: 8px;
}

h3 {
  font-size: 16px;
  margin: 24px 0 8px;
}

p {
  margin: 0 0 14px;
  color: var(--text);
}

ul, ol {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

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

.callout {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 20px 0;
  font-size: 14.5px;
}

.callout strong {
  display: block;
  margin-bottom: 4px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14.5px;
}

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

th {
  color: var(--text-muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

footer.doc-footer {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 13px;
}

@media (max-width: 480px) {
  .page {
    padding: 32px 18px 72px;
  }
  header.masthead h1 {
    font-size: 26px;
  }
}
