/* Mobile-first, clean & readable policy styles (Orange + Jersey 10)
   File: /app/terms/terms.css
   Author: KPGS — Bad Piggies: King Pig's Hunt
   Notes: Prefers-color-scheme aware, large tap targets, wide screens.
*/

/* Google Font: Jersey 10 */
@import url('https://fonts.googleapis.com/css2?family=Jersey+10&display=swap');

:root{
  --bg: #0f0c09;          /* deep warm charcoal */
  --panel: #161310;       /* card background */
  --ink: #fffaf5;         /* warm near-white */
  --ink-dim: #e7d6c8;     /* softened text */
  --brand: #ff8a33;       /* primary orange */
  --brand-2: #ffb366;     /* softer orange for tints */
  --muted: #2b241f;       /* borders / subtle */
  --ring: rgba(255, 138, 51, .35);
  --shadow: 0 10px 20px rgba(0,0,0,.35);
  --radius: 16px;
  --maxw: 900px;
  --lh: 1.5;
  --space: 20px;
  --space-lg: 28px;
  --space-xl: 40px;
  --fs-hero: clamp(1.8rem, 2.8vw + .7rem, 2.6rem);
  --fs-h2: clamp(1.2rem, 1.4vw + .75rem, 1.6rem);
  --fs-base: 1.05rem;
}

@media (prefers-color-scheme: light){
  :root{
    --bg: #fff7f0;
    --panel: #ffffff;
    --ink: #2a1b12;
    --ink-dim: #5b4b41;
    --muted: #f1e7df;
    --ring: rgba(255, 138, 51, .25);
    --shadow: 0 10px 20px rgba(0,0,0,.08);
  }
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body{
  margin:0;
  background:
    radial-gradient(1200px 900px at 20% -10%, rgba(255,138,51,.08), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(255,179,102,.07), transparent 50%),
    var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;

  /* Apply Jersey 10 everywhere */
  font-family: "Jersey 10", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  font-weight: 400;
  font-size: var(--fs-base);
  line-height: var(--lh);
}

.container{
  width: min(100%, var(--maxw));
  margin-inline: auto;
  padding: 24px clamp(16px, 4vw, 32px);
}

.header{
  display: grid;
  gap: 10px;
  padding: var(--space-lg);
  background:
    linear-gradient(180deg, rgba(255,138,51,.10), transparent 60%),
    var(--panel);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.breadcrumbs{
  display:flex; gap:8px; flex-wrap:wrap;
  font-size:.975rem; color:var(--ink-dim);
}
.breadcrumbs a{
  color: var(--ink-dim);
  text-decoration: none;
  padding: 2px 8px;
  border-radius: 10px;
  transition: background .15s ease, color .15s ease;
}
.breadcrumbs a:hover{ background: var(--muted); color: var(--ink); }

.title{
  display:flex; align-items:center; gap:12px; flex-wrap:wrap;
}
.badge{
  font-size: .95rem;
  padding: 5px 12px;
  border-radius: 999px;
  background: #241910;
  border: 1px solid #3a2a1f;
  color: #ffd9bf;
}

h1{
  font-size: var(--fs-hero);
  margin: 0;
  letter-spacing:.3px;
}
.lead{
  color: var(--ink-dim);
  margin: 6px 0 0;
  max-width: 64ch;
}

.card{
  background: var(--panel);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: var(--space-lg);
  box-shadow: var(--shadow);
}

section{ margin-top: var(--space-xl); }

h2{
  font-size: var(--fs-h2);
  margin: 0 0 10px 0;
  letter-spacing:.25px;
}

p, li{ color: var(--ink); }
p + p{ margin-top: 10px; }

/* Reduce or remove boldness globally for better legibility with the display font */
strong, b {
  font-weight: 400; /* normal */
}

/* Also neutralize default heavier weights on headings if Jersey 10 renders them too bold */
h1, h2, h3, h4, h5, h6 {
  font-weight: 400;
}

ul{
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

a{
  color: var(--brand);
  text-decoration: underline;
  text-underline-offset: 3px;
}
a:focus-visible{
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 8px;
}

.kicker{
  display:inline-block;
  font-weight: 400; /* Jersey 10 is display; weight stays 400 */
  color: var(--brand);
  letter-spacing:.6px;
  text-transform: uppercase;
  font-size: .9rem;
}

.notice{
  margin-top: var(--space);
  padding: 12px 14px;
  background: rgba(255,138,51,.10);
  border: 1px dashed rgba(255,138,51,.45);
  border-radius: 12px;
  color: var(--ink);
}

.footer{
  margin: var(--space-xl) 0 var(--space);
  font-size: .95rem;
  color: var(--ink-dim);
  display: grid;
  gap: 6px;
}

hr{
  height: 1px;
  border: 0;
  background: linear-gradient(90deg, transparent, var(--muted), transparent);
  margin: var(--space-lg) 0;
}

/* Large screens */
@media (min-width: 960px){
  .grid{
    display:grid;
    grid-template-columns: 1.2fr .8fr;
    gap: var(--space-lg);
  }
  .sticky{
    position: sticky;
    top: 18px;
    align-self: start;
  }
}

/* Print-friendly */
@media print{
  body{ background: #fff; color:#000; }
  .card, .header{ box-shadow:none; border-color:#ddd; background:#fff; }
  a{ color:#b55300; }
}
