/* ------------------------------------------------------------------
   ResidenceKit — residencekit.apps.llaps.digital
   Marketing, privacy and terms pages for the ten ResidenceKit apps.

   Structure follows samplepark.tr's stylesheet (custom properties, a
   prefers-color-scheme dark block) because it is the house pattern on
   this droplet; the palette is ResidenceKit's own.
   ------------------------------------------------------------------ */

:root {
  --blue-900: #16293f;
  --blue-700: #1f4068;
  --blue-500: #2f6ba8;
  --accent-500: #c2703c;

  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-alt: #eef1f5;
  --border: #dde2e9;
  --text: #17202b;
  --text-muted: #667081;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(22, 41, 63, .06), 0 8px 24px rgba(22, 41, 63, .07);

  --font-sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;

  --measure: 42rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1319;
    --surface: #171d26;
    --surface-alt: #1e2631;
    --border: #2b3542;
    --text: #e7eaee;
    --text-muted: #95a0af;
    --blue-500: #6ba3dd;
    --accent-500: #dd9160;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

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

h1, h2, h3 { font-family: var(--font-serif); font-weight: 600; line-height: 1.25; margin: 0; }

a { color: var(--blue-500); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-500); }

/* Keyboard focus must stay visible: these pages carry the Privacy Policy
   link App Review clicks, and a focus ring removed for looks is an
   accessibility regression on the one page that must be reachable. */
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent-500);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------- Page frame -------------------------------------------- */

.wrap {
  max-width: 60rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.sitehead {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.sitehead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  max-width: 60rem;
  margin: 0 auto;
}

.sitehead__brand {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.sitehead__brand span { color: var(--text-muted); font-weight: 400; }

.sitehead__nav { display: flex; gap: 1rem; font-size: .9rem; }

main { padding: 2.5rem 0 3rem; }

/* ---------- Hero -------------------------------------------------- */

.hero { margin-bottom: 2.5rem; }
.hero h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.hero__sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin: .5rem 0 0;
}
.hero__lead {
  margin: 1.25rem 0 0;
  max-width: var(--measure);
}

/* ---------- App grid (index) -------------------------------------- */

.appgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.appcard {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.1rem 1.2rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.appcard__name { font-family: var(--font-serif); font-size: 1.1rem; font-weight: 600; }
.appcard__name a { text-decoration: none; color: var(--text); }
.appcard__name a:hover { color: var(--blue-500); }
.appcard__sub { color: var(--text-muted); font-size: .92rem; }
.appcard__links { margin-top: .5rem; font-size: .85rem; display: flex; gap: .75rem; flex-wrap: wrap; }

/* ---------- Prose (app / privacy / terms) ------------------------- */

.prose { max-width: var(--measure); }
.prose h2 {
  font-size: 1.2rem;
  margin: 2rem 0 .5rem;
}
.prose h2:first-child { margin-top: 0; }
.prose p { margin: 0 0 1rem; }
.prose ul { margin: 0 0 1rem; padding-left: 1.25rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { font-weight: 600; }

.meta {
  color: var(--text-muted);
  font-size: .9rem;
  margin: 0 0 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.callout {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
}
.callout p:last-child { margin-bottom: 0; }

.applinks {
  display: flex;
  gap: .75rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0;
  font-size: .95rem;
}

/* ---------- Footer ------------------------------------------------ */

.sitefoot {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: 1.5rem 0 2rem;
  font-size: .88rem;
  color: var(--text-muted);
}

.sitefoot__links {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.1rem;
  margin-bottom: .75rem;
}

.sitefoot p { margin: 0; }

@media (max-width: 32rem) {
  .sitehead__inner { flex-direction: column; align-items: flex-start; gap: .5rem; }
  main { padding: 1.75rem 0 2rem; }
}
