/* Mumilune legal pages: the app's Moonlit Bloom paper style (app/lib/core/theme/tokens.dart). */
@font-face {
  font-family: "Cormorant Garamond";
  src: url("/fonts/cormorant-garamond.woff") format("woff");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans.woff") format("woff");
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --paper: #fcf9f3;
  --surface: #fffdf9;
  --ink: #473643;
  --muted: #7c7078;
  --plum: #63465d;
  --line: #e8e0dc;
  --peach: #f3e7db;
  --lilac: #f0e3e6;
  --gold: #a88b59;
  --focus: #88657d;
  color-scheme: light;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.65 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1rem 4rem; }

header.site {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.5rem 0 1rem;
  border-bottom: 1px solid var(--line);
}
header.site .brand {
  font: 600 1.75rem/1 "Cormorant Garamond", Georgia, serif;
  color: var(--plum);
  text-decoration: none;
}
header.site nav a { margin-left: 1rem; color: var(--plum); font-size: .95rem; }
header.site nav a:first-child { margin-left: 0; }
header.site nav a[aria-current="page"] { text-decoration: none; font-weight: 600; }

.draft {
  margin: 1.5rem 0 0;
  padding: .9rem 1.1rem;
  background: var(--lilac);
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: .95rem;
}
.draft strong { color: var(--plum); }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  color: var(--plum);
  line-height: 1.15;
  font-weight: 600;
}
h1 { font-size: 2.75rem; margin: 2rem 0 .25rem; }
h2 { font-size: 1.75rem; margin: 2.5rem 0 .5rem; scroll-margin-top: 1rem; }
h3 { font-size: 1.35rem; margin: 1.75rem 0 .4rem; }

h1 + p { color: var(--muted); margin-top: 0; }

a { color: var(--plum); text-underline-offset: .18em; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }

p, li { max-width: 40rem; }
ul, ol { padding-left: 1.4rem; }
li { margin: .3rem 0; }
strong { font-weight: 600; }

.table { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; vertical-align: top; padding: .65rem .8rem; border-bottom: 1px solid var(--line); }
tr:last-child td { border-bottom: 0; }
th { color: var(--plum); font-weight: 600; background: var(--peach); }

footer.site {
  margin-top: 3rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .9rem;
}

/* Account deletion (/delete-account) and the data deletion page's call to action. */
.cta { margin: 1.5rem 0 .5rem; }
.button {
  display: inline-block;
  padding: .8rem 1.5rem;
  border: 0;
  border-radius: 999px;
  background: var(--plum);
  color: var(--paper);
  font: 600 1rem/1.2 "DM Sans", system-ui, sans-serif;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #523a4d; }
.button:focus-visible, .link:focus-visible, input:focus-visible, summary:focus-visible {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
.button.secondary { background: var(--surface); color: var(--plum); border: 1.5px solid var(--plum); }
.button.secondary:hover { background: var(--peach); }
.button.danger { background: #9b3b4a; }
.button.danger:hover { background: #82303d; }
.button:disabled { background: #cfc4c9; color: #fff; cursor: not-allowed; }
.link {
  padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--plum); font: inherit; text-decoration: underline; text-underline-offset: .18em;
}
.card {
  margin: 1.25rem 0;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
}
.card h2 { margin-top: 0; font-size: 1.4rem; }
.card.warn { background: #fbf0e4; border-color: #e6c9a6; }
.card label { display: block; font-weight: 600; margin-bottom: .45rem; }
.card label.check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; margin: .75rem 0 0; }
.card label.check input { margin-top: .35rem; width: 1.1rem; height: 1.1rem; accent-color: var(--plum); flex: none; }
.card input[type="email"], .card input[type="text"] {
  display: block; width: 100%; margin-bottom: .9rem;
  padding: .75rem .9rem;
  border: 1.5px solid #cdbfc6; border-radius: 12px;
  background: #fff; color: var(--ink);
  font: 400 1.05rem/1.3 "DM Sans", system-ui, sans-serif;
}
.card input[aria-invalid="true"] { border-color: #9b3b4a; }
.error { color: #9b3b4a; font-weight: 600; margin: -.4rem 0 .9rem; }
.small { font-size: .92rem; color: var(--muted); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1.25rem; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
details { margin: 1.25rem 0; }
summary { cursor: pointer; color: var(--plum); font-weight: 600; }
code { font-size: .9em; background: var(--peach); padding: .05em .35em; border-radius: 6px; overflow-wrap: anywhere; }
[hidden] { display: none !important; }
section[data-step] h1:focus { outline: none; }
footer.site a { color: var(--muted); }

@media (max-width: 30rem) {
  body { font-size: 1rem; }
  h1 { font-size: 2.25rem; }
  h2 { font-size: 1.5rem; }
}

@media print {
  .draft { border: 1px solid #999; }
  header.site nav, footer.site { display: none; }
}
