/* Hallmark · theme: custom — CandyCane Light
 *
 * The document pages: privacy and account deletion. Both are shared as links in
 * their own right (Play Console asks for them by URL), so they get the site's
 * header and footer rather than opening as a bare wall of text with no way back.
 *
 * Their wording is not styling's business — these two say what the app does with
 * somebody's data, and one of them is the page Google checks. Nothing here
 * changes a sentence.
 */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; overflow-x: clip; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: var(--w-body);
  font-size: var(--text-base);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 760px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: var(--stroke) solid var(--red); outline-offset: 3px; border-radius: var(--r-sm); }

/* ---- header ------------------------------------------------------------- */
.nav { border-bottom: var(--stroke) solid var(--ink); }
.nav__row {
  max-width: 760px; margin-inline: auto; padding: var(--s-md) var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-md); flex-wrap: wrap;
}
.wordmark {
  display: inline-flex; align-items: center; gap: 0.55rem;
  font-size: 1.3rem; font-weight: var(--w-display); letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.wordmark img { width: 26px; height: 26px; display: block; border-radius: 7px; }

.lang { display: inline-flex; gap: var(--s-xs); }
.lang button {
  font: var(--w-strong) var(--text-label)/1 var(--font);
  letter-spacing: 0.08em; padding: 0.7rem 0.9rem; cursor: pointer; white-space: nowrap;
  color: var(--ink); background: transparent;
  border: 2px solid transparent; border-radius: var(--r-pill);
}
.lang button:hover { background: var(--highlight); }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---- the document ------------------------------------------------------- */
main { padding-block: var(--s-2xl) var(--s-2xl); }

h1 {
  font-size: clamp(2rem, 4vw + 1rem, 2.9rem); font-weight: var(--w-display);
  letter-spacing: var(--track-display); line-height: 1.12; margin: 0 0 var(--s-sm);
  overflow-wrap: anywhere;
}
h2 {
  font-size: var(--text-h3); font-weight: var(--w-display);
  letter-spacing: var(--track-display); line-height: 1.25;
  margin: var(--s-2xl) 0 var(--s-sm);
  overflow-wrap: anywhere;
}
p { margin: 0 0 var(--s-md); }
.sub { color: var(--ink-70); font-size: var(--text-sm); margin-bottom: var(--s-lg); }

ul, ol { padding-left: 1.3em; margin: 0 0 var(--s-md); }
li { margin-bottom: var(--s-sm); }
li::marker { color: var(--green); font-weight: var(--w-display); }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--green); }

strong { font-weight: var(--w-display); }

/* A table of what is kept and why. Bordered like everything else here rather
   than ruled in hairlines, so it reads as the same material as the buttons. */
table {
  width: 100%; border-collapse: separate; border-spacing: 0;
  margin: var(--s-md) 0 var(--s-lg);
  border: var(--stroke) solid var(--ink); border-radius: var(--r-card);
  overflow: hidden; background: var(--surface);
}
th, td {
  padding: 0.7rem 0.9rem; text-align: left; vertical-align: top;
  font-size: var(--text-sm); border-bottom: 2px solid var(--line);
}
th { background: var(--card); font-weight: var(--w-display); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: var(--w-strong); width: 34%; }

/* ---- the 3D button, same geometry as Buttons.kt ------------------------- */
a.cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: var(--s-sm); padding: 0.85rem 1.6rem;
  font-size: var(--text-btn); font-weight: var(--w-display); line-height: 1.2;
  white-space: nowrap; text-decoration: none;
  color: var(--on-green); background: var(--green);
  border: var(--stroke) solid var(--ink); border-radius: var(--r-pill);
  box-shadow: 0 var(--shelf) 0 0 var(--ink);
  transition: transform var(--press-dur) linear, box-shadow var(--press-dur) linear;
}
a.cta:hover { color: var(--on-green); }
a.cta:active { transform: translateY(var(--shelf)); box-shadow: 0 0 0 0 var(--ink); }

/* ---- footer ------------------------------------------------------------- */
.foot { border-top: 2px solid var(--line); }
.foot__row {
  max-width: 760px; margin-inline: auto; padding: var(--s-xl) var(--gutter);
  display: flex; flex-wrap: wrap; gap: var(--s-md); align-items: center; justify-content: space-between;
}
.foot__links { display: flex; flex-wrap: wrap; gap: var(--s-xs); margin-left: calc(var(--s-sm) * -1); }
.foot__links a {
  font-size: var(--text-sm); font-weight: var(--w-strong); text-decoration: none;
  color: var(--ink); padding: 0.7rem var(--s-sm); border-radius: var(--r-sm); white-space: nowrap;
}
.foot__links a:hover { background: var(--highlight); color: var(--ink); }
.foot small { color: var(--ink-70); font-size: var(--text-sm); }

@media (max-width: 520px) {
  a.cta { width: 100%; }
  td:first-child { width: 40%; }
}
