/* Hearthhold legal pages on playhearthhold.com: privacy policy, terms of use, account deletion.
   Based on the game's original page style (same classes, same form styles), restyled to the site:
   the site's fonts and royal-blue accent, a golden-sky header. The page text itself is untouched. */

@font-face {
  font-family: "Citadel Display";
  src: url("/assets/fonts/citadel-display.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/assets/fonts/nunito-var.woff2") format("woff2");
  font-weight: 200 1000;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #f4f8fd;
  --card: #e6eefa;
  --text: #1c2547;
  --muted: #49527a;
  --line: #cfdcee;
  --accent: #24468f;
  --accent-hover: #172d63;
  --field: #ffffff;
  --field-line: #6f7899;
  --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: "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-weight: 500;
  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;
}

/* ---------- Site look ---------- */

body {
  background:
    linear-gradient(180deg, #ffe9b8 0, #f7c477 76px, var(--bg) 76px) no-repeat,
    var(--bg);
}

.top {
  min-height: 76px;
  border-bottom: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Citadel Display", system-ui, sans-serif;
  font-weight: 400;
  font-size: 1.5rem;
  letter-spacing: 0;
  color: #172d63;
  min-height: 44px;
}

.brand::before {
  content: "";
  width: 31px;
  height: 38px;
  background: url("/assets/img/shield-96.webp") center / contain no-repeat;
}

.lang a {
  color: #172d63;
  font-weight: 700;
}

.lang [aria-current="page"] {
  font-weight: 800;
}

h1 {
  font-family: "Citadel Display", system-ui, sans-serif;
  font-weight: 400;
  font-size: 2.25rem;
  line-height: 1.1;
  color: #24468f;
  margin-top: 32px;
}

h2,
h3,
dl.facts dt,
.field label,
.field legend {
  font-weight: 800;
}

.summary {
  border-left-color: #e8a82e;
  border-radius: 10px;
}

button {
  border-radius: 999px;
  font-weight: 800;
}
