/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --clr-bg:        #f7f8fc;
  --clr-surface:   #ffffff;
  --clr-primary:   #9B8EC4;
  --clr-primary-d: #7c6fa8;
  --clr-text:      #1A1F3D;
  --clr-text-soft: #374151;
  --clr-muted:     #6b7280;
  --clr-border:    #E5E7EB;
  --clr-accent-bg: #F5EEFF;
  --clr-section-bg:#F9F9FB;
  --radius:        14px;
  --shadow:        0 4px 24px rgba(0,0,0,.07);
  --transition:    .2s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  background: var(--clr-bg);
  color: var(--clr-text);
  line-height: 1.6;
}

/* ── Utility ──────────────────────────────────────────────── */
.container { max-width: 640px; margin: 0 auto; padding: 0 1.5rem; }
.sr-only   { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* ── Header ───────────────────────────────────────────────── */
header {
  background: var(--clr-surface);
  border-bottom: 1px solid var(--clr-border);
  position: sticky; top: 0; z-index: 100;
}

.navbar {
  display: flex;
  align-items: center;
  padding: .9rem 1.5rem;
  max-width: 640px;
  margin: 0 auto;
}

.logo {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  color: var(--clr-text);
}

.logo-icon {
  width: 36px; height: 36px;
  background: var(--clr-primary);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}

.logo-icon svg { width: 20px; height: 20px; }

.logo-name {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -.5px;
}

/* ── Privacy page layout ──────────────────────────────────── */
.privacy-page {
  padding-top: 2.5rem;
  padding-bottom: 4rem;
}

/* Header card */
.privacy-header-card {
  background: var(--clr-accent-bg);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  margin-bottom: 1.5rem;
}

.privacy-header-icon {
  width: 56px; height: 56px;
  margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center;
}

.privacy-header-icon svg { width: 100%; height: 100%; }

.privacy-header-card h1 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .6rem;
}

.privacy-header-card p {
  font-size: .95rem;
  color: var(--clr-muted);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* Sections list */
.privacy-sections {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.privacy-section {
  background: var(--clr-section-bg);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.4rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.ps-icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  background: rgba(155, 142, 196, 0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-top: .1rem;
}

.ps-icon svg { width: 20px; height: 20px; }

.ps-body h2 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: .45rem;
}

.ps-body p {
  font-size: .9rem;
  color: var(--clr-text-soft);
  line-height: 1.6;
}

/* Contact form */
.contact-card {
  margin-top: 1.5rem;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius);
  padding: 1.4rem;
}

.contact-card h2 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.contact-card p {
  font-size: .9rem;
  color: var(--clr-text-soft);
  margin-bottom: .9rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.contact-form label {
  font-size: .85rem;
  font-weight: 600;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--clr-border);
  border-radius: 10px;
  padding: .7rem .75rem;
  font: inherit;
  color: var(--clr-text);
  background: #fff;
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: 2px solid rgba(155, 142, 196, 0.35);
  outline-offset: 1px;
  border-color: var(--clr-primary);
}

.contact-form button {
  margin-top: .25rem;
  border: 0;
  border-radius: 10px;
  padding: .75rem 1rem;
  background: var(--clr-primary);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--transition);
}

.contact-form button:hover {
  background: var(--clr-primary-d);
}

/* Last updated */
.privacy-updated {
  text-align: center;
  margin-top: 2rem;
  font-size: .8rem;
  color: #9CA3AF;
  font-style: italic;
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--clr-surface);
  border-top: 1px solid var(--clr-border);
  padding: 2rem 1.5rem;
  text-align: center;
  color: var(--clr-muted);
  font-size: .85rem;
}

footer a { color: var(--clr-muted); text-decoration: none; }
footer a:hover { color: var(--clr-primary); }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 600px) {
  .privacy-section { flex-direction: column; gap: .75rem; }
  .ps-icon { margin-top: 0; }
}
