/* lessmoke — legal & support site
   Palette lifted from the app's DoodleDesignSystem so the pages read as the
   same product a reviewer just had open on the phone. */

:root {
  --paper: #FFFDF7;
  --card: #FFFFFF;
  --ink: #15324A;
  --muted-ink: #66737C;
  --line: #D8DAD6;
  --lemon: #FFD93D;
  --sky: #8FDDF2;
  --mint: #66D7B2;
  --coral: #FF9D86;
  --peach: #FFE1D2;
  --shadow: rgba(21, 50, 74, 0.10);
  --radius: 18px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101E2A;
    --card: #162836;
    --ink: #EAF2F7;
    --muted-ink: #9DB0BD;
    --line: #2A3F52;
    --shadow: rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Nunito", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

.wrap {
  max-width: 780px;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* ---------- header ---------- */

header.site {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 0 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}

.brand .mark {
  width: 38px;
  height: 38px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--lemon);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  box-shadow: 3px 4px 0 var(--shadow);
}

nav.site {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

nav.site a {
  color: var(--muted-ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 7px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}

nav.site a:hover { color: var(--ink); border-color: var(--line); }
nav.site a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }

/* ---------- language switch ---------- */

.langswitch {
  display: inline-flex;
  border: 2px solid var(--ink);
  border-radius: 999px;
  overflow: hidden;
  background: var(--card);
}

.langswitch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted-ink);
  font: inherit;
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  padding: 7px 14px;
  cursor: pointer;
}

.langswitch button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--paper);
}

/* ---------- type ---------- */

h1 {
  font-size: clamp(1.9rem, 5vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}

h2 {
  font-size: 1.28rem;
  letter-spacing: -0.01em;
  margin: 40px 0 10px;
  padding-top: 22px;
  border-top: 2px solid var(--line);
}

h3 { font-size: 1.03rem; margin: 22px 0 6px; }

p, li { color: var(--ink); }
p { margin: 0 0 14px; }
ul, ol { margin: 0 0 16px; padding-left: 22px; }
li { margin-bottom: 7px; }

a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--coral); }

.lede { font-size: 1.08rem; color: var(--muted-ink); margin-bottom: 4px; }
.meta { font-size: 0.88rem; color: var(--muted-ink); margin-bottom: 30px; }

/* ---------- boxes ---------- */

.card {
  background: var(--card);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 3px 4px 0 var(--shadow);
  padding: 22px 24px;
  margin: 0 0 26px;
}

.note {
  border-left: 6px solid var(--lemon);
  background: var(--card);
  border-radius: 12px;
  padding: 16px 20px;
  margin: 0 0 26px;
  border-top: 2px solid var(--line);
  border-right: 2px solid var(--line);
  border-bottom: 2px solid var(--line);
}

.note.contact { border-left-color: var(--sky); }
.note.warn { border-left-color: var(--coral); }

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

/* ---------- table ---------- */

.tablewrap { overflow-x: auto; margin: 0 0 26px; }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 460px;
}

th, td {
  border: 2px solid var(--line);
  padding: 11px 13px;
  text-align: left;
  vertical-align: top;
}

th { background: var(--peach); color: #15324A; font-weight: 800; }

@media (prefers-color-scheme: dark) {
  th { background: #23394B; color: var(--ink); }
}

/* ---------- support page bits ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
  margin: 0 0 26px;
}

.grid .card { margin: 0; }
.grid h3 { margin-top: 0; }

.btn {
  display: inline-block;
  background: var(--lemon);
  color: #15324A;
  border: 2px solid #15324A;
  border-radius: 999px;
  box-shadow: 3px 4px 0 rgba(21, 50, 74, 0.25);
  padding: 11px 22px;
  font-weight: 800;
  text-decoration: none;
}

.btn:hover { color: #15324A; transform: translate(1px, 1px); box-shadow: 2px 3px 0 rgba(21, 50, 74, 0.25); }

details {
  border: 2px solid var(--line);
  border-radius: 12px;
  padding: 12px 18px;
  margin-bottom: 12px;
  background: var(--card);
}

details[open] { border-color: var(--ink); }
summary { cursor: pointer; font-weight: 800; }
summary::-webkit-details-marker { color: var(--muted-ink); }
details p:first-of-type { margin-top: 12px; }

/* ---------- footer ---------- */

footer.site {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 2px solid var(--line);
  color: var(--muted-ink);
  font-size: 0.88rem;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

footer.site a { color: var(--muted-ink); }

/* ---------- language visibility ---------- */

[data-lang] { display: none; }
html[lang="en"] [data-lang="en"],
html[lang="tr"] [data-lang="tr"] { display: revert; }
