/* CutSell's web face: the app's dark monochrome (CutSellDesign/Tokens.swift, CS.Content.*), its rounded display
   type and its Nucleo Pixel icons, drawn at 24 px only so the pixels stay square. */

:root {
  --ground: #0e0e10;      /* CS.Content.ground  (0.055, 0.055, 0.063) */
  --raised: #1a1b1e;      /* CS.Content.raised  (0.102, 0.106, 0.118) */
  --raised-2: #232428;
  --stroke: rgba(255, 255, 255, 0.10);
  --text: #f5f5f5;        /* CS.Content.primaryText */
  --text-2: rgba(245, 245, 245, 0.62);
  --text-3: rgba(245, 245, 245, 0.38);
  --radius-card: 22px;
  --radius-small: 12px;
  --gutter: 20px;
  --max: 1120px;
  --display: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --body: "Geist", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ground);
  color: var(--text);
  font: 17px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; }
img { max-width: 100%; display: block; }

/* One language at a time: every text exists in both, the root says which one shows. */
html[data-lang="en"] [lang="es"]:not(html) { display: none !important; }
html[data-lang="es"] [lang="en"]:not(html) { display: none !important; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

.icon { width: 24px; height: 24px; flex: none; color: var(--text); }
.icon svg { width: 24px; height: 24px; display: block; }
.tile {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--raised-2); border-radius: var(--radius-small);
}

/* ---------- Nav ---------- */

.nav {
  position: sticky; top: 0; z-index: 10;
  background: rgba(14, 14, 16, 0.82);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--stroke);
}
.nav .wrap { display: flex; align-items: center; gap: 16px; height: 60px; }
.nav .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .brand img.mark { width: 30px; height: 30px; border-radius: 8px; }
.nav .brand img.word { height: 20px; width: auto; }
.nav .links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; }
.nav .links a { color: var(--text-2); text-decoration: none; }
.nav .links a:hover { color: var(--text); }

.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px; border-radius: 999px;
  background: var(--raised); border: 1px solid var(--stroke);
}
.lang-switch button {
  font: 600 13px/1 var(--body); color: var(--text-2);
  background: none; border: 0; border-radius: 999px; padding: 7px 10px; cursor: pointer;
  min-width: 38px; min-height: 30px;
}
.lang-switch button[aria-pressed="true"] { background: var(--text); color: var(--ground); }

@media (max-width: 720px) {
  .nav .links { display: none; }
  .nav .lang-switch { margin-left: auto; }
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: 600 17px/1 var(--body); text-decoration: none; border: 0; cursor: pointer;
}
.btn-primary { background: var(--text); color: var(--ground); }

/* ---------- Legal pages ---------- */

.legal { padding: 48px 0 24px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(34px, 5vw, 48px); margin: 8px 0 8px; font-weight: 500; }
.legal .updated { color: var(--text-3); font-size: 15px; margin: 0 0 32px; }
.legal h2 { font-size: 24px; margin: 36px 0 10px; }
.legal h3 { font-size: 18px; margin: 22px 0 6px; }
.legal p, .legal li { color: var(--text-2); font-size: 16.5px; }
.legal li { margin: 6px 0; }
.legal strong { color: var(--text); }
.legal a { color: var(--text); text-underline-offset: 3px; }
.legal .summary {
  background: var(--raised); border: 1px solid var(--stroke); border-radius: var(--radius-card); padding: 20px 24px;
}
.legal .summary ul { margin: 8px 0 0; padding-left: 20px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 12px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--stroke); color: var(--text-2); vertical-align: top; }
.legal th { color: var(--text); font-weight: 600; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }
