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

:root {
  --bg: #f4f8f6;
  --surface: #ffffff;
  --surface-soft: #f8fbfa;
  --text: #10251f;
  --muted: #5f746d;
  --border: #dbe8e3;
  --border-strong: #c8ddd5;
  --mint: #2f8f76;
  --mint-dark: #1f6655;
  --mint-soft: #e5f5ef;
  --mint-pale: #f1faf7;
  --shadow: 0 24px 70px rgba(22, 61, 50, .08);
  --radius: 22px;
}

html { background: var(--bg); scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(47,143,118,.11), transparent 34rem),
    linear-gradient(180deg, #f7faf9 0, var(--bg) 26rem);
  line-height: 1.68;
}
a { color: var(--mint-dark); }
a:focus-visible { outline: 3px solid rgba(47,143,118,.35); outline-offset: 4px; border-radius: 6px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .92em; }

.site-shell,
.page-shell { width: min(100% - 36px, 1040px); margin: 0 auto; padding: 28px 0 64px; }
.site-nav {
  min-height: 52px; display: flex; align-items: center; justify-content: space-between;
  gap: 18px; margin-bottom: 18px; padding: 0 4px;
}
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 760; letter-spacing: -.01em; }
.brand-dot {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px;
  background: var(--text); color: #dff7ee; font-size: .71rem; font-weight: 850; letter-spacing: -.02em;
  box-shadow: 0 8px 20px rgba(16,37,31,.14);
}
.nav-link { text-decoration: none; font-size: .92rem; font-weight: 700; }

.policy-document,
.policy-card {
  overflow: hidden; background: rgba(255,255,255,.97); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(260px, .72fr); gap: 42px;
  padding: clamp(34px, 6vw, 68px); background: linear-gradient(135deg, #ffffff 0%, #fbfefd 52%, #eef8f4 100%);
  border-bottom: 1px solid var(--border);
}
.eyebrow,
.product-name {
  display: inline-flex; margin: 0 0 18px; padding: 6px 10px; border-radius: 999px;
  background: var(--mint-soft); color: var(--mint-dark); font-size: .76rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase;
}
h1, h2, p { margin-top: 0; }
h1 { margin: 0; max-width: 720px; font-size: clamp(2.45rem, 7vw, 4.8rem); line-height: .98; letter-spacing: -.058em; }
.hero-subtitle { margin: 14px 0 0; color: var(--mint-dark); font-size: clamp(1.35rem, 3vw, 1.8rem); font-weight: 760; letter-spacing: -.025em; }
.lede,
.intro { max-width: 690px; margin: 24px 0 0; color: #38564d; font-size: 1.08rem; line-height: 1.72; }
.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.meta-row span { padding: 8px 11px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.8); color: var(--muted); font-size: .82rem; }
.meta-row strong { color: var(--text); }

.summary-panel { align-self: start; padding: 22px; border: 1px solid #cfe4dc; border-radius: 18px; background: rgba(237,249,244,.88); }
.summary-kicker { margin: 0 0 14px; color: var(--mint-dark); font-size: .79rem; font-weight: 820; letter-spacing: .08em; text-transform: uppercase; }
.summary-list { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.summary-list li { display: grid; grid-template-columns: 10px 1fr; gap: 10px; align-items: start; color: #28493f; font-size: .91rem; line-height: 1.46; }
.status-dot, .sync-dot { width: 8px; height: 8px; margin-top: .38rem; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(47,143,118,.12); }
.sync-dot { background: #778f87; box-shadow: 0 0 0 4px rgba(119,143,135,.12); }

.policy-overview { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--border); background: #fbfdfc; }
.overview-card { min-height: 128px; padding: 22px 24px; border-right: 1px solid var(--border); }
.overview-card:last-child { border-right: 0; }
.overview-label { display: block; margin-bottom: 12px; color: var(--muted); font-size: .73rem; font-weight: 780; letter-spacing: .07em; text-transform: uppercase; }
.overview-card strong { display: block; font-size: .93rem; line-height: 1.45; letter-spacing: -.01em; }

.policy-body { padding: 0 clamp(28px, 6vw, 68px) 20px; }
.policy-section { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 20px; padding: 42px 0; border-bottom: 1px solid var(--border); }
.policy-section:last-child { border-bottom: 0; }
.section-number { margin: 3px 0 0; color: #91a69f; font-size: .74rem; font-weight: 820; letter-spacing: .08em; }
.policy-section h2 { margin: 0 0 12px; color: var(--text); font-size: 1.42rem; line-height: 1.25; letter-spacing: -.028em; }
.policy-section p { margin-bottom: 14px; color: #38564d; }
.policy-section p:last-child { margin-bottom: 0; }
.note-box { display: grid; gap: 4px; margin-top: 18px; padding: 15px 17px; border-left: 3px solid var(--mint); border-radius: 0 12px 12px 0; background: var(--mint-pale); }
.note-box strong { font-size: .82rem; }
.note-box span { color: #48655d; font-size: .9rem; }
.storage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 22px; }
.storage-grid > div { padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.storage-grid span { display: block; margin-bottom: 8px; color: var(--muted); font-size: .72rem; font-weight: 780; letter-spacing: .06em; text-transform: uppercase; }
.storage-grid strong { display: block; font-size: .86rem; line-height: 1.42; }
.permission-list { display: grid; gap: 10px; }
.permission-list > div { display: grid; grid-template-columns: 122px 1fr; gap: 18px; align-items: start; padding: 16px 18px; border: 1px solid var(--border); border-radius: 13px; background: var(--surface-soft); }
.permission-list code { width: max-content; padding: 4px 7px; border-radius: 7px; background: var(--mint-soft); color: var(--mint-dark); font-weight: 800; }
.permission-list p { margin: 0; }
.document-footer,
.policy-footer { display: flex; justify-content: space-between; gap: 18px; padding: 24px clamp(28px, 6vw, 68px); border-top: 1px solid var(--border); background: #fbfdfc; color: var(--muted); font-size: .82rem; }

/* Family hub and development placeholder */
.policy-header { padding: clamp(32px, 5vw, 52px); border-bottom: 1px solid var(--border); background: linear-gradient(135deg,#fff,#f1faf7); }
.policy-header h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
.effective-date { color: var(--muted); font-weight: 650; }
.top-nav { padding: 20px clamp(28px, 5vw, 52px) 0; }
.top-nav a { font-weight: 700; text-decoration: none; }
.policy-list { display: grid; gap: 12px; padding: 26px clamp(28px, 5vw, 52px) 40px; }
.policy-link-card { display: grid; gap: 5px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 15px; background: var(--surface-soft); color: var(--text); text-decoration: none; transition: border-color .15s ease, transform .15s ease; }
.policy-link-card:hover { border-color: #9fc9b9; transform: translateY(-1px); }
.policy-link-card strong { font-size: 1rem; }
.policy-link-card span { color: var(--muted); font-size: .86rem; }
.placeholder-banner { margin: 28px clamp(28px, 5vw, 52px) 0; padding: 18px 20px; border: 1px solid #dfd8b6; border-radius: 14px; background: #fffbed; color: #5d552c; }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .summary-panel { max-width: none; }
  .policy-overview { grid-template-columns: repeat(2, 1fr); }
  .overview-card:nth-child(2) { border-right: 0; }
  .overview-card:nth-child(-n+2) { border-bottom: 1px solid var(--border); }
  .storage-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .site-shell, .page-shell { width: min(100% - 18px, 1040px); padding: 12px 0 28px; }
  .site-nav { padding: 0 6px; }
  .brand-mark span:last-child { display: none; }
  .hero-grid { padding: 28px 22px; }
  h1 { font-size: clamp(2.3rem, 13vw, 3.45rem); }
  .meta-row { display: grid; }
  .policy-overview { grid-template-columns: 1fr; }
  .overview-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border); }
  .overview-card:last-child { border-bottom: 0; }
  .policy-body { padding: 0 22px 10px; }
  .policy-section { grid-template-columns: 1fr; gap: 6px; padding: 31px 0; }
  .section-number { margin: 0; }
  .permission-list > div { grid-template-columns: 1fr; gap: 10px; }
  .document-footer, .policy-footer { flex-direction: column; padding: 20px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .policy-link-card { transition: none; }
}
