/* KinLetter — shared styles for legal / support pages
   Index.html keeps its own embedded styles; this file is for the
   text-heavy secondary pages (privacy, terms, support, account deletion). */

:root {
  --cyan: #0EA5C8;
  --amber: #E8995A;
  --cream: #FAF6F0;
  --pale-cyan: #E5F0F2;
  --muted-cyan: #6BA5B0;
  --ink: #1f2a2e;
  --ink-soft: #4a5a60;
  --hairline: rgba(31, 42, 46, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}

/* ---------- LANGUAGE TOGGLE ---------- */
.nav-right {
  display: flex;
  align-items: center;
  gap: 18px;
}
.lang-toggle {
  font-size: 13px;
  color: var(--ink-soft);
}
.lang-toggle .lang-active {
  font-weight: 600;
  color: var(--ink);
}
.lang-toggle .lang-sep {
  margin: 0 4px;
  opacity: 0.4;
}
.lang-toggle a {
  color: var(--ink-soft);
  font-size: 13px;
}

/* ---------- TOP NAV (mirrors index.html) ---------- */
nav.top {
  padding: 22px 0;
  border-bottom: 1px solid var(--hairline);
}
nav.top .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--cyan);
  letter-spacing: 0.3px;
  text-decoration: none;
}
nav.top a.home {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

/* ---------- PAGE HEADER ---------- */
header.page {
  padding: 64px 0 28px;
}
header.page .eyebrow {
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted-cyan);
  margin-bottom: 12px;
  font-weight: 500;
}
header.page h1 {
  font-family: 'Playfair Display', serif;
  font-weight: 400;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
header.page .updated {
  color: var(--ink-soft);
  font-size: 14px;
  font-style: italic;
}

/* ---------- DOC BODY ---------- */
article.doc {
  padding: 16px 0 80px;
}
article.doc h2 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.2px;
  margin: 48px 0 12px;
  color: var(--ink);
}
article.doc h3 {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  font-size: 19px;
  margin: 28px 0 8px;
  color: var(--ink);
}
article.doc p {
  margin: 0 0 16px;
  color: var(--ink-soft);
}
article.doc ul, article.doc ol {
  padding-left: 22px;
  margin: 0 0 18px;
  color: var(--ink-soft);
}
article.doc li { margin-bottom: 8px; }
article.doc strong { color: var(--ink); }

article.doc .callout {
  background: var(--pale-cyan);
  border-left: 3px solid var(--cyan);
  border-radius: 0 10px 10px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--ink);
  font-size: 16px;
}
article.doc .callout p:last-child { margin-bottom: 0; }

article.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 15px;
}
article.doc th, article.doc td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-soft);
}
article.doc th {
  font-family: 'Playfair Display', serif;
  font-weight: 500;
  color: var(--ink);
  background: var(--pale-cyan);
}

/* ---------- FOOTER ---------- */
footer {
  padding: 40px 0 36px;
  border-top: 1px solid var(--hairline);
  color: var(--muted-cyan);
  font-size: 14px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
footer .links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
footer .links a { color: var(--muted-cyan); }
footer .copy {
  font-size: 12px;
  opacity: 0.85;
}

@media (max-width: 600px) {
  header.page { padding: 40px 0 20px; }
  article.doc h2 { margin-top: 36px; }
  footer .container { flex-direction: column; align-items: flex-start; }
}
