/* peakpic — support and legal pages.
   The palette is the app's own (Caestro/UI/Theme/CaestroPalette.swift). */
:root {
  --ink: #23211D;
  --ink-soft: #6C675F;
  --ink-faint: #A8A29A;
  --brand: #FF5A47;
  --rule: #E7E3DD;
  --surface: #F7F5F2;
  --page: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #F2EFEA;
    --ink-soft: #B0AAA1;
    --ink-faint: #7C766D;
    --brand: #FF6E5C;
    --rule: #33302B;
    --surface: #1C1A17;
    --page: #131211;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Pretendard", "Noto Sans KR", "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.wrap { max-width: 720px; margin: 0 auto; padding: 0 24px; }

/* Header ------------------------------------------------------------ */
header { border-bottom: 1px solid var(--rule); }

header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  flex-wrap: wrap;
}

.wordmark {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}

.wordmark::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 3px;
  border-radius: 50%;
  background: var(--brand);
  vertical-align: 3px;
}

nav { display: flex; gap: 20px; font-size: 14px; }
nav a { color: var(--ink-soft); text-decoration: none; }
nav a:hover { color: var(--brand); }

/* Type -------------------------------------------------------------- */
main { padding: 56px 0 88px; }

h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

.lede { font-size: 17px; color: var(--ink-soft); margin: 0 0 48px; }

h2 {
  font-size: 19px;
  letter-spacing: -0.01em;
  margin: 44px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

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

h3 { font-size: 16px; margin: 24px 0 6px; }

p { margin: 0 0 14px; }

ul { margin: 0 0 16px; padding-left: 20px; }
li { margin-bottom: 6px; }

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

small, .meta { font-size: 14px; color: var(--ink-faint); }

/* Blocks ------------------------------------------------------------ */
.notice {
  background: var(--surface);
  border-left: 3px solid var(--brand);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px;
  margin: 0 0 28px;
  font-size: 15px;
  color: var(--ink-soft);
}

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

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

.contact {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

/* FAQ --------------------------------------------------------------- */
details {
  border-bottom: 1px solid var(--rule);
  padding: 18px 0;
}

summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

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

summary::after {
  content: "+";
  color: var(--ink-faint);
  font-weight: 400;
  flex: none;
}

details[open] summary::after { content: "\2212"; }

details > *:not(summary) { color: var(--ink-soft); }
details > p:first-of-type { margin-top: 12px; }

/* Footer ------------------------------------------------------------ */
footer {
  border-top: 1px solid var(--rule);
  padding: 28px 0 56px;
  font-size: 14px;
  color: var(--ink-faint);
}

footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--ink-soft); text-decoration: none; }

@media (max-width: 520px) {
  main { padding: 40px 0 64px; }
  h1 { font-size: 25px; }
}
