/* Houzzy legal pages (privacy, terms, delete account): calm, roomy, easy to read on any phone. */

:root {
  --navy: #060040;
  --lime: #dcef00;
  --bg: #f4f4f8;
  --surface: #ffffff;
  --ink: #0b0830;
  --ink-2: #4b4d63;
  --line: rgb(6 0 64 / 0.1);
  --soft: rgb(6 0 64 / 0.04);
  --ring: rgb(6 0 64 / 0.045);
  --lime-soft: rgb(220 239 0 / 0.28);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #07032e;
    --surface: #0f0a45;
    --ink: #f4f4fb;
    --ink-2: #b9bad0;
    --line: rgb(255 255 255 / 0.12);
    --soft: rgb(255 255 255 / 0.04);
    --ring: rgb(220 239 0 / 0.04);
    --lime-soft: rgb(220 239 0 / 0.14);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16.5px/1.75 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.ripples {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: repeating-radial-gradient(circle at 78% 115%, transparent 0 46px, var(--ring) 47px 48px);
}
.shell { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px; }
a { color: inherit; text-underline-offset: 3px; }
a:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
}
.top .home { display: inline-flex; padding: 4px 0; }
.top img.logo { height: 42px; width: auto; display: block; }
.top img.logo-for-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .top img.logo-for-light { display: none; }
  :root:not([data-theme="light"]) .top img.logo-for-dark { display: block; }
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
}
.tabs a {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink-2);
  white-space: nowrap;
  transition: background 0.2s ease, color 0.2s ease;
}
.tabs a:hover { color: var(--ink); background: var(--soft); }
.tabs a[aria-current="page"] { background: var(--navy); color: #fff; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tabs a[aria-current="page"] { background: var(--lime); color: var(--navy); }
}

/* Title */
.hero { padding: 72px 0 56px; max-width: 820px; }
.hero h1 {
  margin: 0;
  font-family: "Urbanist", sans-serif;
  font-weight: 900;
  font-size: clamp(44px, 7.5vw, 92px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}
.hero h1 span { box-shadow: inset 0 -0.18em 0 var(--lime-soft); }
.lead { margin: 22px 0 0; font-size: 19px; line-height: 1.6; color: var(--ink-2); max-width: 60ch; }
.updated {
  display: inline-flex;
  margin-top: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2);
}

/* Body: contents + article */
.doc {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
  padding-bottom: 96px;
}
.toc { position: sticky; top: 28px; font-size: 14px; }
.toc p { margin: 0 0 12px; font-weight: 700; color: var(--ink); }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--line); }
.toc a {
  display: block;
  margin-left: -1px;
  padding: 6px 0 6px 16px;
  border-left: 2px solid transparent;
  color: var(--ink-2);
  text-decoration: none;
  line-height: 1.4;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.toc a:hover { color: var(--ink); }
.toc a.is-active { color: var(--ink); font-weight: 700; border-left-color: var(--lime); }

article {
  max-width: 70ch;
  background: var(--surface);
  border-radius: 28px;
  padding: 56px 60px;
  box-shadow: 0 0 0 1px var(--line);
}
article > :first-child { margin-top: 0; }
article h2 {
  margin: 56px 0 14px;
  font-family: "Urbanist", sans-serif;
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
article h2:first-child { margin-top: 0; }
article p, article li { color: var(--ink-2); }
article strong { color: var(--ink); }
article p { margin: 0 0 16px; }
article ul, article ol { margin: 0 0 16px; padding-left: 22px; }
article li { margin: 8px 0; padding-left: 4px; }
article li::marker { color: var(--ink); font-weight: 700; }
article a { color: var(--ink); font-weight: 600; text-decoration-color: var(--lime); text-decoration-thickness: 2px; }

/* "What we collect" rows */
.rows { display: grid; gap: 0; margin: 8px 0 20px; border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: 210px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.row dt { font-weight: 700; color: var(--ink); line-height: 1.5; }
.row dd { margin: 0; color: var(--ink-2); line-height: 1.65; }

/* Steps (delete account) */
.steps { counter-reset: step; list-style: none; padding: 0 !important; display: grid; gap: 12px; }
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 14px;
  align-items: center;
  margin: 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: var(--soft);
  color: var(--ink);
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--lime);
  font-family: "Urbanist", sans-serif;
  font-weight: 900;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .steps li::before { background: var(--lime); color: var(--navy); }
}

.note {
  margin: 28px 0 0;
  padding: 18px 22px;
  border-radius: 18px;
  background: var(--lime-soft);
  color: var(--ink);
  font-size: 15px;
}

/* Footer */
.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px 24px;
  padding: 22px 0 32px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-2);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot a { color: var(--ink); font-weight: 600; text-decoration: none; padding: 6px 0; }
.foot a:hover { text-decoration: underline; }

/* Tablet: contents move above the article as chips. */
@media (max-width: 960px) {
  .doc { grid-template-columns: 1fr; gap: 28px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { margin: 0; padding: 7px 14px; border: 0; border-radius: 999px; background: var(--surface); box-shadow: 0 0 0 1px var(--line); }
  .toc a.is-active { border: 0; }
}

/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .shell { padding: 0 16px; }
  .top { flex-direction: column; align-items: flex-start; gap: 14px; padding: 16px 0 8px; }
  .top img.logo { height: 32px; }
  .tabs { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { padding: 9px 12px; font-size: 13px; }
  .hero { padding: 36px 0 28px; }
  .lead { font-size: 17px; }
  article { padding: 28px 20px; border-radius: 22px; }
  article h2 { font-size: 22px; margin-top: 40px; }
  .row { grid-template-columns: 1fr; gap: 4px; padding: 14px 0; }
  .doc { padding-bottom: 56px; }
  .foot { flex-direction: column; align-items: flex-start; }
}
