/*
  Shared styles for the two legal pages (privacy policy, account deletion).

  Deliberately not the welcome page's treatment. That page is a brand lockup on
  the launcher icon's ink, centred and animated; these are documents that people
  read top to bottom, sometimes on a phone in a shop, and sometimes because they
  want something deleted. So: paper ground, one long measure, generous leading,
  and the ink kept to the masthead and the rules. Palette still comes from the
  app (theme.ts) so a customer arriving from the app does not feel handed off to
  a different company.

  Single-theme on purpose, like welcome.css: a legal document should look the
  same for everyone who reads it, and print the same.
*/

:root {
  --ink: #1E232E;
  --gold: #D8A22C;
  --navy: #1F3050;

  --paper: #FFFFFF;
  --sunken: #F1F3F8;
  --line: #E2E6EE;
  --hairline: #EEF0F5;
  --text: #101725;
  --muted: #5A6478;
  --faint: #7C8698;
  --danger: #C22A2A;
  --danger-bg: #FBE9E9;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.masthead {
  background: var(--ink);
  border-bottom: 3px solid var(--gold);
  padding: 2rem 0 1.75rem;
}

.wrap {
  width: 100%;
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.masthead .brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}
.masthead .mark { width: 40px; height: 40px; flex: none; }
.masthead .brand span {
  color: #FFFFFF;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.masthead h1 {
  margin: 0 0 0.5rem;
  color: #FFFFFF;
  font-size: clamp(1.6rem, 5.5vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.masthead .updated {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
}

main { padding: 2.5rem 0 4.5rem; }

.lede {
  font-size: 1.0625rem;
  color: var(--text);
  border-left: 3px solid var(--gold);
  padding-left: 1rem;
  margin: 0 0 2rem;
}

h2 {
  font-size: 1.1875rem;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  text-wrap: balance;
}
h3 {
  font-size: 1rem;
  margin: 1.75rem 0 0.5rem;
}
p { margin: 0 0 1rem; }
ul { margin: 0 0 1rem; padding-left: 1.35rem; }
li { margin-bottom: 0.45rem; }
strong { font-weight: 600; }

a { color: #8A6410; text-underline-offset: 2px; }
a:hover { color: var(--ink); }
a:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.panel {
  background: var(--sunken);
  border: 1px solid var(--line);
  border-radius: 3px;
  padding: 1.1rem 1.25rem;
  margin: 0 0 1.5rem;
}
.panel p:last-child, .panel ul:last-child { margin-bottom: 0; }
.panel h3 { margin-top: 0; }

.panel.warn {
  background: var(--danger-bg);
  border-color: var(--danger);
}
.panel.warn h3 { color: var(--danger); }

.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 2.4rem;
  margin-bottom: 0.9rem;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--navy);
  border-radius: 50%;
  color: var(--navy);
  font-size: 0.8125rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}

.table-scroll { overflow-x: auto; margin: 0 0 1.5rem; border: 1px solid var(--line); border-radius: 3px; }
table { border-collapse: collapse; width: 100%; font-size: 0.9375rem; min-width: 26rem; }
th, td { text-align: left; padding: 0.6rem 0.85rem; border-top: 1px solid var(--hairline); vertical-align: top; }
thead th {
  border-top: 0;
  background: var(--sunken);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.contact { font-style: normal; }
.contact dt {
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 0.85rem;
}
.contact dd { margin: 0.15rem 0 0; font-weight: 500; }

footer {
  border-top: 1px solid var(--line);
  padding: 1.5rem 0 3rem;
  color: var(--muted);
  font-size: 0.875rem;
}
footer nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin-bottom: 0.75rem; }

@media print {
  .masthead { background: none; border-bottom: 2px solid #000; }
  .masthead h1, .masthead .brand span { color: #000; }
  .masthead .updated { color: #444; }
  body { font-size: 11pt; }
}
