/*
  Shared styling for the public legal pages (/privacy, /delete-account).
  Standalone on purpose: these are served to people who may not have the app,
  and they never load the admin panel bundle. Palette matches /app/index.html.

  Referenced absolutely, because the rewrites in the repo-root firebase.json
  serve these documents from paths that do not match their directory depth.
*/
:root {
  --ink: #031f58;
  --muted: #5b6785;
  --ground: #f5f7fb;
  --card: #ffffff;
  --line: #dfe4ee;
  --accent: #0b63d6;
  --warn-ground: #fff7ed;
  --warn-line: #fed7aa;
  --warn-ink: #7c3a06;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px 64px;
  background: var(--ground);
  color: var(--ink);
  font-family: system-ui, -apple-system, 'Segoe UI', Tahoma, 'Noto Sans Arabic', sans-serif;
  line-height: 1.85;
}

main {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 40px 32px;
}

.lockup {
  width: 150px;
  max-width: 100%;
  height: auto;
  margin: 0 0 24px;
  display: block;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
  line-height: 1.4;
}

h2 {
  font-size: 1.15rem;
  margin: 32px 0 10px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

h2:first-of-type {
  border-top: 0;
  padding-top: 0;
}

p,
li {
  color: var(--muted);
  margin: 0 0 10px;
}

ul {
  padding-inline-start: 22px;
  margin: 0 0 14px;
}

li {
  margin-bottom: 6px;
}

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

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

.updated {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0 0 4px;
}

.callout {
  background: var(--warn-ground);
  border: 1px solid var(--warn-line);
  color: var(--warn-ink);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 20px 0;
}

.callout p,
.callout li {
  color: inherit;
}

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

.steps {
  counter-reset: step;
  list-style: none;
  padding-inline-start: 0;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding-inline-start: 40px;
  margin-bottom: 14px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  inset-inline-start: 0;
  top: 2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

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

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

th {
  color: var(--ink);
  font-weight: 600;
  background: var(--ground);
}

td {
  color: var(--muted);
}

footer {
  max-width: 720px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

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

@media (max-width: 520px) {
  main {
    padding: 28px 20px;
  }

  h1 {
    font-size: 1.35rem;
  }

  table {
    font-size: 0.88rem;
  }

  th,
  td {
    padding: 8px 8px;
  }
}
