/* Yıldızım — web palette.
   Values copied VERBATIM from src/design/tokens.ts so the site and the app
   never drift. If a token changes there, change it here too.
   The contrast notes in tokens.ts apply here as well: gold700 is the only
   gold usable for text on cream (5.32:1 on cream50); gold500/400/300 are for
   fills and for text on night surfaces. */
:root {
  --night900: #16223F;
  --night800: #1E2C52;
  --night700: #283763;

  --cream50: #FCF8F1;
  --cream100: #FFFDF8;
  --cream200: #F5ECDD;
  --line100: #E7DDC9;

  --gold500: #C9862B;
  --gold400: #D8A85B;
  --gold300: #E4C486;
  --gold700: #8E5D14;
  --copper500: #A2532E;

  --text-strong: #16203A;
  --text-body: #3D4560;
  --text-muted: #5F6679;
  --text-strong-dark: #FDF8EF;
  --text-body-dark: #DCE2F1;
  --text-muted-dark: #A9B4D2;
  --text-on-gold: #23180A;

  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --maxw: 68rem;
  --radius: 18px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--cream50);
  color: var(--text-body);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--display); color: var(--text-strong); line-height: 1.12; letter-spacing: -0.01em; }

a { color: var(--gold700); }
a:focus-visible,
button:focus-visible { outline: 3px solid var(--gold500); outline-offset: 3px; border-radius: 4px; }

/* ---------- Legal / document pages ---------- */
.wrap { max-width: 44rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.wrap header { border-bottom: 1px solid var(--line100); padding-bottom: 1.25rem; margin-bottom: 2rem; }
.wrap h1 { font-size: clamp(1.6rem, 4vw, 2.1rem); margin: 0 0 .4rem; }
.wrap h2 { font-size: 1.25rem; margin: 2.2rem 0 .6rem; color: var(--night900); }
.wrap h3 { font-size: 1.05rem; margin: 1.4rem 0 .4rem; }
.sub { color: var(--text-muted); font-size: .9rem; margin: 0; font-family: var(--body); }

table { border-collapse: collapse; width: 100%; margin: .9rem 0; font-size: .93rem; }
th, td { border: 1px solid var(--line100); padding: .55rem .65rem; text-align: left; vertical-align: top; }
th { background: var(--cream200); font-weight: 600; color: var(--text-strong); }
code { background: var(--cream200); padding: .1rem .3rem; border-radius: 3px; font-size: .88em; }
ul { padding-left: 1.2rem; } li { margin: .3rem 0; }

.note {
  background: var(--cream200);
  border-left: 3px solid var(--gold500);
  padding: .85rem 1rem;
  margin: 1.25rem 0;
  border-radius: 0 10px 10px 0;
  font-size: .95rem;
}

footer {
  margin-top: 3rem; padding-top: 1.25rem;
  border-top: 1px solid var(--line100);
  color: var(--text-muted); font-size: .87rem;
}

/* Wide tables (the data table in the notice) must scroll inside themselves,
   never make the page scroll sideways. */
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

@media (max-width: 30rem) {
  .wrap { padding: 1.75rem 1rem 3rem; }
  table { font-size: .87rem; }
  th, td { padding: .45rem .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
