/* Shared stylesheet for legal & support pages (privacy.html, terms.html, support.html).
   Matches the warm Kiddo-inspired design of the homepage. */

@import url("fonts.css");

:root {
  --bg: #F2F7F4;
  --card: #FCFEFD;
  --ink: #1E3531;
  --ink-soft: #3C5650;
  --ink-faint: #627C74;
  --rule: #DCE8E1;
  --accent: #DD7350;
  --accent-deep: #B85636;
  --butter-soft: #F6E5C2;
  --max: 700px;
  --gap: clamp(1rem, 2vw, 1.5rem);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

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

html, body { overflow-x: hidden; overflow-x: clip; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

main, header, footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gap);
}

header {
  padding-top: clamp(2.5rem, 7vw, 5rem);
  padding-bottom: clamp(1.5rem, 4vw, 3rem);
}

footer {
  margin-top: clamp(4rem, 10vw, 7rem);
  padding-top: 1.5rem;
  padding-bottom: 3rem;
  border-top: 1.5px solid var(--rule);
  color: var(--ink-faint);
  font-size: 0.85rem;
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 0.75rem;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
  margin-bottom: 1rem;
}

h2 {
  font-size: 1.4rem;
  margin-top: 3rem;
  margin-bottom: 0.9rem;
}

h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}

p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

p.lead {
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.5;
  color: var(--ink);
  margin-bottom: 1.5rem;
  text-wrap: pretty;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

a:hover { color: var(--accent-deep); }

a.email {
  color: var(--accent-deep);
  font-weight: 500;
}

ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

li { margin-bottom: 0.45rem; }
li::marker { color: var(--accent); }

strong { color: var(--ink); }

hr {
  border: 0;
  border-top: 1.5px solid var(--rule);
  margin: 3rem 0;
}

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-deep);
  background: var(--butter-soft);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.9rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink);
  text-decoration: none;
}

.brand::before {
  content: "it";
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  background: var(--accent);
  color: #FFF7EC;
  font-family: var(--mono);
  font-style: normal;
  font-size: 0.65rem;
  border-radius: 46% 54% 52% 48% / 52% 46% 54% 48%;
}

.brand:hover { color: var(--accent-deep); }

.app {
  border-top: 1.5px solid var(--rule);
  padding: 1.25rem 0;
}

.app:last-of-type { border-bottom: 1.5px solid var(--rule); }

.app h3 {
  margin: 0 0 0.25rem;
  font-weight: 600;
}

.app p {
  margin: 0;
  font-size: 0.95rem;
}

.legal-meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-faint);
  line-height: 1.7;
  margin-top: 1rem;
}

.legal-meta span { display: block; }

.back {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  color: var(--ink-faint);
  text-decoration: none;
  margin-bottom: 2rem;
  transition: color 0.15s ease, transform 0.15s ease;
}

.back:hover { color: var(--accent-deep); }

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121F1B;
    --card: #1A2A25;
    --ink: #E9F2ED;
    --ink-soft: #B4CAC1;
    --ink-faint: #6F8A81;
    --rule: #273B34;
    --accent: #E08B5E;
    --accent-deep: #EBA77F;
    --butter-soft: #3A3522;
  }
}

.notice {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.45rem 0.4rem 0.45rem 0.9rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  box-shadow: 0 6px 24px rgba(20, 50, 44, 0.18);
  z-index: 50;
  animation: notice-in 0.3s ease-out;
}

.notice-text { padding-right: 0.25rem; }

.notice-close {
  background: transparent;
  border: 0;
  color: inherit;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 0.45rem;
  height: 1.5rem;
  cursor: pointer;
  border-radius: 999px;
  opacity: 0.6;
  transition: opacity 0.15s ease, background 0.15s ease;
  font-family: inherit;
}

.notice-close:hover,
.notice-close:focus-visible {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.notice.notice-hide {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

@keyframes notice-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .notice { animation: none; }
  .notice.notice-hide { transition: none; }
}

@media (max-width: 480px) {
  .notice {
    right: 0.75rem;
    bottom: 0.75rem;
  }
}
