/* Site soapbuzz.app: páginas estáticas (início, privacidade, termos, exclusão de conta), servidas pelo Caddy.
   Sem fontes, scripts ou imagens de terceiros: a página de privacidade não pode, ela mesma, rastrear ninguém.
   Cores das paletas do app (app/lib/theme/app_theme.dart): clara por padrão, escura se o aparelho pedir. */

:root {
  color-scheme: light dark;
  --bg: #fbf8fa;
  --surface: #ffffff;
  --surface-high: #f2ecef;
  --border: rgba(43, 26, 34, 0.12);
  --text: #1e181c;
  --text-body: #2b2428;
  --text-secondary: #5e5459;
  --text-muted: #766c71;
  --accent: #c2306a;
  --accent-tint: #fbe3ec;
  --gradient: linear-gradient(135deg, #e46191, #c93a78 55%, #8c63e0);
  --serif: "Playfair Display", Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0b0e;
    --surface: #16131a;
    --surface-high: #201c24;
    --border: rgba(255, 255, 255, 0.1);
    --text: #f7f2f5;
    --text-body: #e9e3e7;
    --text-secondary: #b9afb5;
    --text-muted: #857b81;
    --accent: #f08db1;
    --accent-tint: #341828;
    --gradient: linear-gradient(135deg, #f7a8c6, #e46191 55%, #b394f5);
  }
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text-body);
  font: 17px/1.65 var(--sans);
}

a {
  color: var(--accent);
  text-underline-offset: 2px;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

/* ------------------------------------------------------------------ cabeçalho e rodapé */

.site-header {
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font: 800 1.3rem/1 var(--serif);
}

.mark {
  display: inline-grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 0.6rem;
  background: var(--gradient);
  color: #fff;
  font: 800 0.8rem/1 var(--serif);
  letter-spacing: 0.02em;
}

.site-header nav {
  margin-left: auto;
  display: flex;
  gap: 1.1rem;
  font-size: 0.92rem;
}

.site-header nav a {
  color: var(--text-secondary);
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--text);
}

.site-footer {
  margin-top: 4rem;
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2.5rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.25rem;
  margin: 0 0 0.75rem;
  padding: 0;
  list-style: none;
}

.site-footer a {
  color: var(--text-secondary);
}

.site-footer p {
  margin: 0.35rem 0 0;
}

/* ------------------------------------------------------------------ páginas de texto */

.doc {
  padding-top: 2.75rem;
}

.doc h1 {
  margin: 0 0 0.4rem;
  color: var(--text);
  font: 800 clamp(2rem, 6vw, 2.6rem)/1.15 var(--serif);
  letter-spacing: -0.01em;
}

.updated {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.doc h2 {
  margin: 2.6rem 0 0.75rem;
  color: var(--text);
  font: 700 1.45rem/1.25 var(--serif);
}

.doc h3 {
  margin: 1.75rem 0 0.5rem;
  color: var(--text);
  font-size: 1.05rem;
}

.doc p,
.doc ul,
.doc ol {
  margin: 0 0 1rem;
}

.doc li {
  margin: 0.35rem 0;
}

.doc strong {
  color: var(--text);
}

.summary {
  margin: 0 0 2rem;
  padding: 1.1rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.summary h2 {
  margin-top: 0.25rem;
  font-size: 1.2rem;
}

.summary ul {
  margin-bottom: 0.25rem;
}

.toc {
  margin: 0 0 2rem;
  font-size: 0.95rem;
}

.toc ol {
  columns: 2 15rem;
  column-gap: 2rem;
  padding-left: 1.3rem;
}

.toc li {
  margin: 0.2rem 0;
  break-inside: avoid;
}

.note {
  padding: 0.9rem 1.1rem;
  border-left: 3px solid var(--accent);
  border-radius: 0 0.6rem 0.6rem 0;
  background: var(--accent-tint);
  color: var(--text);
}

.steps {
  counter-reset: step;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  margin: 0.75rem 0;
  padding-left: 2.6rem;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0.1rem;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.doc h2[id],
.doc h3[id] {
  scroll-margin-top: 1rem;
}

/* ------------------------------------------------------------------ início */

.hero {
  padding: 4.5rem 0 1rem;
  text-align: center;
}

.hero .mark {
  width: 5rem;
  height: 5rem;
  border-radius: 1.35rem;
  font-size: 1.8rem;
  box-shadow: 0 1rem 2.5rem -1rem rgba(228, 97, 145, 0.6);
}

.hero h1 {
  margin: 1.4rem 0 0.6rem;
  color: var(--text);
  font: 800 clamp(2.4rem, 9vw, 3.4rem)/1.05 var(--serif);
}

.hero .lead {
  max-width: 32rem;
  margin: 0 auto;
  color: var(--text-secondary);
  font-size: 1.15rem;
}

.shows {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.shows li {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font-size: 0.9rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  gap: 0.9rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

.features li {
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--border);
  border-radius: 1rem;
  background: var(--surface);
}

.features strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--text);
}

.features span {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.disclaimer {
  margin: 2.5rem 0 0;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

@media (max-width: 30rem) {
  body {
    font-size: 16px;
  }

  .site-header nav {
    gap: 0.8rem;
    font-size: 0.85rem;
  }

  .site-header .brand span:last-child {
    display: none;
  }
}
