/* Music Pairs — support, privacy and legal pages.
   Colours mirror the app theme (lib/core/theme/app_theme.dart, gold_style.dart).
   No JavaScript, no cookies, no external requests: the wordmark font is served
   from this folder. */

@font-face {
  font-family: "Righteous";
  src: url("Righteous-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #F1E8D6;          /* app light scaffold creme */
  --surface: #FBF6EC;     /* surfaceContainerLow (light) */
  --border: #E0D4BC;
  --text: #24272C;        /* icon charcoal */
  --muted: #5B5E64;
  --link: #7A5C2E;        /* darkened gold: gold #B9975F on creme is ~2:1 */
  --gold-top: #C9A971;
  --gold-mid: #B9975F;
  --gold-bottom: #9E7E48;
  --todo-bg: #FFE1DC;
  --todo-text: #9B1C0E;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1E2024;        /* surfaceContainerLowest (dark) */
    --surface: #25282E;   /* surfaceContainerLow (dark) */
    --border: #373B43;
    --text: #EDE5D4;
    --muted: #B3AC9F;
    --link: #C9A971;
    --todo-bg: #4A1F1A;
    --todo-text: #FFB4A8;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

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

/* ── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 0;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 11px;
  flex: none;
}

.wordmark {
  font-family: "Righteous", sans-serif;
  font-size: 28px;
  line-height: 1;
  white-space: nowrap;
  background: linear-gradient(180deg, var(--gold-top), var(--gold-mid) 55%, var(--gold-bottom));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lang {
  font-size: 15px;
  white-space: nowrap;
}

.lang a, .lang span { padding: 4px 2px; }
.lang span { font-weight: 600; }

/* ── Content ────────────────────────────────────────────────────────────── */

h1 {
  font-size: 30px;
  line-height: 1.25;
  margin: 0 0 8px;
}

h2 {
  font-size: 21px;
  line-height: 1.3;
  margin: 40px 0 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

h3 {
  font-size: 17px;
  margin: 24px 0 4px;
}

p, ul { margin: 0 0 12px; }
ul { padding-inline-start: 22px; }
li { margin-bottom: 4px; }

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

.lead { font-size: 19px; color: var(--muted); }
.meta { color: var(--muted); font-size: 15px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 16px 0;
}

.card p:last-child { margin-bottom: 0; }

.contact {
  font-size: 19px;
  font-weight: 600;
  word-break: break-all;
}

details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 10px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  padding: 14px 20px;
  list-style: none;
  display: flex;
  gap: 10px;
}

summary::-webkit-details-marker { display: none; }

summary::before {
  content: "▸";
  color: var(--link);
  flex: none;
}

details[open] > summary::before { content: "▾"; }

details > div { padding: 0 20px 14px; }

address { font-style: normal; }

/* Unfilled placeholders — must be gone before upload (see website/README.md). */
.todo {
  background: var(--todo-bg);
  color: var(--todo-text);
  font-weight: 600;
  padding: 0 4px;
  border-radius: 4px;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  margin-top: 56px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  color: var(--muted);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-bottom: 8px;
}

/* Copyright line with the DiThiKai wordmark (copied from the DiThiKai brand,
   light/dark via <picture>) linking to the developer site */
.copy {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.copy a { display: inline-flex; padding: 2px 0; }
.copy img { display: block; width: auto; height: 14px; }

@media (max-width: 420px) {
  .wordmark { font-size: 22px; }
  .brand img { width: 40px; height: 40px; border-radius: 9px; }
  h1 { font-size: 26px; }
}
