/* ============================================================
   SelfFit / Frank Hidalgo — Legal microsite
   Static, no external requests, no tracking, no cookies.
   Brand: dark gradient, white text, orange accent #DA511F.
   ============================================================ */

:root {
  --bg:          #000000;
  --card:        rgba(255, 255, 255, 0.025);
  --card-hover:  rgba(255, 255, 255, 0.045);
  --border:      rgba(255, 255, 255, 0.09);
  --border-soft: rgba(255, 255, 255, 0.06);
  --text:        #f4f4f5;
  --muted:       #b4b4bd;
  --muted-dim:   #84848e;
  --accent:      #da511f;
  --accent-soft: rgba(218, 81, 31, 0.12);
  --accent-line: rgba(218, 81, 31, 0.35);
  --maxw:        880px;
  --radius:      14px;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 50% -12%, rgba(218, 81, 31, 0.10), transparent 62%),
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: auto, 46px 46px, 46px 46px;
  background-attachment: fixed;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto,
               Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 1.22rem;
  color: var(--text);
}
.brand:hover { text-decoration: none; }
.brand-tag {
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  padding: 2px 8px;
  border-radius: 999px;
}
.nav {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  padding: 6px 11px;
  border-radius: 9px;
  border: 1px solid transparent;
  transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.nav a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav a.active {
  color: var(--text);
  background: var(--accent-soft);
  border-color: var(--accent-line);
}

/* ---------- Layout ---------- */
main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 22px 40px;
}
.page-head { margin-bottom: 34px; }
.page-head h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  font-weight: 800;
  margin: 0 0 12px;
}
.updated {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--muted-dim);
  border: 1px solid var(--border-soft);
  background: var(--card);
  padding: 4px 12px;
  border-radius: 999px;
}
.lede {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--muted);
  max-width: 62ch;
}

/* ---------- Card sections ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 28px;
  margin: 18px 0;
}
.card h2 {
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  padding-left: 14px;
  border-left: 3px solid var(--accent);
}
.card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  margin: 20px 0 8px;
  color: var(--text);
}
.card p { margin: 0 0 12px; color: var(--muted); }
.card p:last-child { margin-bottom: 0; }
.card ul { margin: 0 0 12px; padding-left: 22px; color: var(--muted); }
.card li { margin-bottom: 8px; }
.card li::marker { color: var(--accent); }
.card strong { color: var(--text); font-weight: 600; }
.card a { word-break: break-word; }

/* Callout for key compliance statements */
.callout {
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 18px 0;
}
.callout p { margin: 0; color: var(--text); }

/* Email step box (data-deletion) */
.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding: 4px 0 16px 44px;
  margin: 0;
  color: var(--muted);
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-line);
  border-radius: 50%;
}
.kv {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-soft);
  border-radius: 7px;
  padding: 2px 7px;
  color: var(--text);
}

/* Index / landing cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 26px;
}
.tile {
  display: block;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.tile:hover {
  background: var(--card-hover);
  border-color: var(--accent-line);
  text-decoration: none;
  transform: translateY(-2px);
}
.tile h2 { font-size: 1.05rem; color: var(--text); margin: 0 0 6px; }
.tile p { color: var(--muted); font-size: 0.92rem; margin: 0; }
.tile .arrow { color: var(--accent); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border-soft);
  margin-top: 40px;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 22px 40px;
  color: var(--muted-dim);
  font-size: 0.88rem;
}
.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a { color: var(--muted); }
.footer-inner .contact { color: var(--muted); }
.footer-inner .copyright { margin-top: 6px; }

@media (max-width: 560px) {
  main { padding-top: 40px; }
  .card { padding: 22px 20px; }
  .brand { font-size: 1.1rem; }
  .nav a { padding: 5px 9px; font-size: 0.85rem; }
}
