/* PickleCall legal pages. Floodlight palette from the app (lib/design/pc_theme.dart);
   After Hours palette in dark mode. */
:root {
  --cobalt: #234ada;
  --cobalt-deep: #16328d;
  --lime: #d8ef89;
  --peach: #f4b48c;
  --gold: #ffdf88;
  --bg: #fffaf2;
  --surface: #ffffff;
  --ink: #17231f;
  --sub: #46545d;
  --line: #e7e1d4;
  --tint: #f3f9dc;
  --link: #234ada;
  --display: "Inter", system-ui, -apple-system, sans-serif;
  --score: "Anton", Impact, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101e18;
    --surface: #17291f;
    --ink: #eef2ea;
    --sub: #a9b8ad;
    --line: #28392f;
    --tint: #1b2e22;
    --link: #d8ef89;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.65 var(--display); -webkit-font-smoothing: antialiased;
}
a { color: var(--link); text-underline-offset: 3px; }
.wrap { width: min(820px, 100% - 32px); margin-inline: auto; }

/* Header */
.pc-nav { background: var(--cobalt); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 0 rgb(255 255 255 / 12%); }
.pc-nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 12px; }
.pc-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.pc-brand img:first-child { width: 36px; height: 36px; }
.pc-brand .pc-word { height: 26px; width: auto; }
.pc-nav__links { display: flex; gap: 6px; }
.pc-nav__links a {
  color: #fff; text-decoration: none; font-weight: 700; font-size: .92rem;
  padding: .45em .95em; border-radius: 999px; border: 1px solid rgb(255 255 255 / 30%);
}
.pc-nav__links a[aria-current="page"] { background: var(--lime); color: var(--ink); border-color: var(--lime); }

/* Hero: cobalt court */
.pc-hero {
  position: relative; overflow: hidden; color: #fff; padding: 48px 0 56px;
  background:
    radial-gradient(ellipse at 50% 20%, rgb(255 255 255 / 16%), rgb(217 228 255 / 8%) 32%, transparent 67%),
    var(--cobalt);
}
.pc-hero::before { /* faint court lines */
  content: ""; position: absolute; inset: 22px 16px -40px; border: 1.5px solid rgb(255 255 255 / 18%);
  border-radius: 90px 90px 0 0; pointer-events: none;
}
.pc-hero::after { /* the kitchen line */
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 34px;
  border-top: 1.5px dashed rgb(255 255 255 / 18%); pointer-events: none;
}
.pc-hero .wrap { position: relative; z-index: 1; }
.pc-kicker {
  display: inline-flex; align-items: center; gap: 8px; background: var(--lime); color: var(--ink);
  font-weight: 800; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .45em 1em; border-radius: 999px; transform: rotate(-2deg);
}
.pc-hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  font-size: clamp(2.6rem, 8vw, 4.2rem); margin: .35em 0 .25em;
}
.pc-hero p { margin: 0; color: #dde5ff; font-size: .95rem; }
.pc-score {
  position: absolute; right: 16px; top: 50%; transform: translateY(-50%);
  font-family: var(--score); font-size: clamp(5rem, 16vw, 9rem); line-height: 1;
  color: rgb(255 255 255 / 12%); letter-spacing: .02em; pointer-events: none; user-select: none;
}

/* Body */
.pc-body { padding: 40px 0 72px; }
.pc-body h2 {
  font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; font-size: clamp(1.35rem, 3vw, 1.6rem);
  margin: 2em 0 .55em; display: flex; align-items: center; gap: 12px;
}
.pc-body h2::before { /* a little ball bullet */
  content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #eef9bf, var(--lime) 60%, #b9d45f);
  box-shadow: 0 2px 0 var(--cobalt-deep);
}
.pc-body p { margin: 0 0 1em; }
.pc-body ul { padding-left: 1.2em; margin: 0 0 1em; }
.pc-body li { margin-bottom: .45em; }
.pc-body li::marker { color: var(--cobalt); }
@media (prefers-color-scheme: dark) { .pc-body li::marker { color: var(--lime); } }

.pc-card {
  background: var(--tint); border: 1.5px solid var(--lime); border-radius: 22px;
  padding: 20px 24px; margin-bottom: 8px; position: relative;
}
.pc-card > strong:first-child { display: block; font-size: 1.05rem; margin-bottom: .5em; }
.pc-card ul { margin: 0; }

.pc-table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.pc-table { width: 100%; border-collapse: collapse; font-size: .94rem; min-width: 560px; }
.pc-table th, .pc-table td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.pc-table thead th { background: var(--cobalt); color: #fff; font-weight: 700; }
.pc-table tbody tr:last-child td { border-bottom: 0; }
.pc-table td:first-child { font-weight: 700; white-space: nowrap; }

/* Footer */
.pc-foot { background: var(--ink); color: #c6d1c6; padding: 28px 0; font-size: .9rem; }
@media (prefers-color-scheme: dark) { .pc-foot { background: #0a1410; } }
.pc-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; align-items: center; }
.pc-foot a { color: var(--lime); }
.pc-foot__brand { display: flex; align-items: center; gap: 8px; color: #fff; font-weight: 700; }
.pc-foot__brand img { width: 22px; height: 22px; }

@media (max-width: 560px) {
  .pc-brand .pc-word { height: 20px; }
  .pc-brand img:first-child { width: 30px; height: 30px; }
  .pc-nav__links a { padding: .4em .75em; font-size: .85rem; }
  .pc-score { display: none; }
}
