/* Shared styling for the legal pages (privacy / terms / account deletion).
   Tokens mirror src/lib/theme.ts and web/index.html — flat, hairline borders,
   14px radius, no shadows. index.html keeps its own inline copy because it is
   a single self-contained card; these three are long documents and share a
   left-aligned reading layout instead. */

:root {
  --bg: #f4f5f6;
  --card: #ffffff;
  --text: #191c1e;
  --muted: #6b7276;
  --accent: #3b6ea5;
  --hairline: rgba(25, 28, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px;
  background: var(--bg);
  color: var(--text);
  font-family:
    'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 680px;
  margin: 0 auto;
}

.card {
  background: var(--card);
  border: 0.5px solid var(--hairline);
  border-radius: 14px;
  padding: 32px 28px;
}

h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 500;
}

h2 {
  margin: 32px 0 10px;
  font-size: 17px;
  font-weight: 500;
}

.updated {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--muted);
}

p,
li {
  font-size: 15px;
  line-height: 1.6;
}

p {
  margin: 0 0 14px;
}

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

li {
  margin-bottom: 8px;
}

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

/* Pulled-out statement for the things people most need to see: that the app
   never touches money, and what deletion actually does. */
.note {
  margin: 0 0 14px;
  padding: 16px;
  border: 0.5px solid var(--hairline);
  border-radius: 14px;
  font-size: 15px;
  line-height: 1.6;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 14px;
  font-size: 15px;
}

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

th {
  font-weight: 500;
  color: var(--muted);
  font-size: 13px;
}

/* Long values (IBAN, service names) must not force the page to scroll
   sideways on a phone. */
td {
  overflow-wrap: anywhere;
}

footer {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

footer a {
  color: var(--muted);
}
