/* Hearthhold web pages: privacy policy, terms of use, account deletion.
   Mobile first, system fonts only, dark text on a light background. */

:root {
  color-scheme: light;
  --bg: #fbf8f3;
  --card: #f3ece2;
  --text: #1f1a16;
  --muted: #5b5148;
  --line: #ddd2c4;
  --accent: #8f3510;
  --accent-hover: #6e2709;
  --field: #ffffff;
  --field-line: #857a6f;
  --ok-bg: #e5f3e8;
  --ok-text: #17592b;
  --bad-bg: #fbe8e6;
  --bad-text: #8f1717;
  --note-bg: #fff3d1;
  --note-line: #d9a93a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  overflow-wrap: break-word;
}

.page {
  max-width: 44rem;
  margin: 0 auto;
  padding: 0 16px 48px;
}

/* ---------- Top bar ---------- */

.top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  color: var(--text);
  text-decoration: none;
}

.lang {
  display: flex;
  gap: 12px;
  font-size: 0.9375rem;
}

.lang [aria-current="page"] {
  font-weight: 700;
  color: var(--text);
  text-decoration: none;
}

/* ---------- Text ---------- */

h1 {
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 28px 0 4px;
}

h2 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 32px 0 8px;
}

h3 {
  font-size: 1.0625rem;
  margin: 20px 0 4px;
}

p,
ul,
ol {
  margin: 0 0 12px;
}

ul,
ol {
  padding-left: 1.4em;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

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

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.updated {
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 20px;
}

.summary {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: 6px;
  padding: 14px 16px 4px;
  margin: 16px 0 8px;
}

.summary h2 {
  margin-top: 0;
  font-size: 1.0625rem;
}

/* Menu paths (SETTINGS → Account → …) wrap like normal text: nowrap overflowed narrow phones. */
.path {
  font-weight: 600;
  white-space: normal;
  overflow-wrap: anywhere;
}

/* Simple two-column facts, stacked on phones. */
dl.facts {
  margin: 0 0 12px;
}

dl.facts dt {
  font-weight: 600;
  margin-top: 10px;
}

dl.facts dd {
  margin: 2px 0 0;
}

@media (min-width: 40rem) {
  dl.facts {
    display: grid;
    grid-template-columns: minmax(9rem, 13rem) 1fr;
    column-gap: 16px;
  }

  dl.facts dt,
  dl.facts dd {
    margin: 0;
    padding: 8px 0;
    border-top: 1px solid var(--line);
  }
}

/* ---------- Notes for the owner's lawyer ---------- */

.review-note {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9375rem;
}

/* ---------- Form ---------- */

.request-form {
  background: var(--card);
  border-radius: 8px;
  padding: 16px;
  margin: 12px 0 24px;
}

.field {
  margin-bottom: 16px;
}

.field label,
.field legend {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.field fieldset {
  border: 0;
  margin: 0;
  padding: 0;
}

.hint {
  display: block;
  color: var(--muted);
  font-size: 0.9375rem;
  margin-bottom: 6px;
}

.field .choice {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 6px 0;
  font-weight: 400;
}

.choice input {
  margin-top: 0.35em;
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--accent);
}

input[type="text"],
textarea {
  width: 100%;
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--field);
  border: 1px solid var(--field-line);
  border-radius: 6px;
  padding: 10px 12px;
}

input.player-id {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

textarea {
  min-height: 8rem;
  resize: vertical;
}

button {
  font: inherit;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  min-height: 48px;
  cursor: pointer;
}

button:hover {
  background: var(--accent-hover);
}

button:disabled {
  background: var(--field-line);
  cursor: default;
}

.status {
  margin: 14px 0 0;
  padding: 10px 14px;
  border-radius: 6px;
}

.status:empty {
  display: none;
}

.status.ok {
  background: var(--ok-bg);
  color: var(--ok-text);
}

.status.bad {
  background: var(--bad-bg);
  color: var(--bad-text);
}

.noscript {
  background: var(--bad-bg);
  color: var(--bad-text);
  padding: 10px 14px;
  border-radius: 6px;
}

/* ---------- Footer ---------- */

.foot {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-bottom: 12px;
}

hr.split {
  border: 0;
  border-top: 2px solid var(--line);
  margin: 48px 0 0;
}

/* Landing page (index.html): the icon and one big store button first. */
.hero {
  text-align: center;
  padding: 24px 0 8px;
}
.hero img {
  border-radius: 22%;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
}
.store-button {
  display: block;
  margin: 20px auto 10px;
  max-width: 340px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #111111;
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}
.store-button:hover {
  background: #2b2b2b;
  color: #ffffff;
}
.store-button small {
  display: block;
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.85;
}
.store-alt {
  text-align: center;
  font-size: 0.95rem;
}
