:root {
  /* -------------------------------------------------
   * Bestio Web Standard v1.0 — Foundation Tokens
   * ------------------------------------------------- */

  /* Radius */
  --radius-xs: 0.28rem;
  --radius-sm: 0.8rem;
  --radius-md: 1.25rem;
  --radius-lg: 1.5rem;
  --radius-pill: 999px;
  --radius-round: 50%;

  /* Typography scale */
  --font-size-100: 0.78rem;
  --font-size-200: 0.82rem;
  --font-size-300: 0.86rem;
  --font-size-400: 1rem;
  --font-size-500: 1.05rem;
  --font-size-600: 1.25rem;

  /* Line-height scale */
  --line-height-100: 1;
  --line-height-200: 1.25;
  --line-height-300: 1.4;
  --line-height-400: 1.55;
  --line-height-500: 1.6;
  --line-height-600: 1.7;

  /* Motion */
  --duration-fast: 180ms;
  --duration-standard: 240ms;
  --duration-slow: 320ms;
  --ease-standard: ease;

  /* Interaction targets */
  --target-pointer-min: 2rem;
  --target-touch-min: 2.75rem;

  /*
   * Canonical responsive boundaries.
   * CSS custom properties cannot be consumed directly
   * inside media-query conditions, so validation keeps
   * actual @media rules aligned with these values.
   */
  --breakpoint-tablet: 48rem;
  --breakpoint-desktop: 64rem;
  --breakpoint-wide: 70rem;
}

/* Legal surface semantic colors */
:root {
  --legal-bg: #f7f3ec;
  --legal-card: #fffdf8;
  --legal-text: #14181f;
  --legal-muted: #5d646d;
  --legal-line: #ddd6ca;
  --legal-accent: #14181f;
  --legal-warning: #8a4b00;
  --legal-warning-border: #e4b66a;
  --legal-warning-bg: #fff4df;
}

:root[data-theme="dark"] {
  --legal-bg: #14181f;
  --legal-card: #1d232c;
  --legal-text: #f7f3ec;
  --legal-muted: #b6bdc7;
  --legal-line: #39414d;
  --legal-accent: #f7f3ec;
  --legal-warning: #ffd38a;
  --legal-warning-border: #8a6629;
  --legal-warning-bg: #2b251b;
}
