/* WildKick - Football Challenges: legal pages (CONPLY).
   One stylesheet for every page. Self-contained: no fonts, scripts or trackers are loaded from anywhere. */

:root {
  --navy: #081a44;
  --navy-2: #0f2e78;
  --blue: #1f5fd6;
  --sky: #3fa9f5;
  --gold: #f4b52a;
  --gold-2: #ffd774;
  --pitch: #23a455;
  --ink: #18223a;
  --muted: #5a6680;
  --line: #e2e7f1;
  --bg: #f3f6fb;
  --card: #ffffff;
  --note: #fff7e2;
  --note-line: #f1d58e;
  --ok: #e7f7ee;
  --ok-line: #aee0c3;
  --radius: 16px;
  --max: 920px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  color: var(--ink);
  background: var(--bg);
}
a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
code { font-size: .92em; overflow-wrap: anywhere; }
a:hover { color: var(--navy); }

/* Header band: night sky over a pitch */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 38px 20px 34px;
  background:
    radial-gradient(1200px 300px at 85% -40%, rgba(63, 169, 245, .45), transparent 60%),
    linear-gradient(165deg, var(--navy) 0%, var(--navy-2) 55%, #1748a8 100%);
  border-bottom: 5px solid var(--gold);
}
.hero::after {
  /* the halfway line and centre circle, faint */
  content: "";
  position: absolute; right: -90px; bottom: -150px;
  width: 340px; height: 340px; border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, .10);
  box-shadow: 0 0 0 60px rgba(255, 255, 255, .03);
  pointer-events: none;
}
.hero .wrap { position: relative; max-width: var(--max); margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 14px; font-weight: 700; letter-spacing: .2px; }
.brand img {
  width: 64px; height: 64px; object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .35));
}
.brand .name { font-size: 18px; line-height: 1.25; }
.brand small { display: block; font-weight: 500; opacity: .82; font-size: 13px; }
.hero h1 { margin: 24px 0 10px; font-size: clamp(28px, 4.8vw, 42px); line-height: 1.15; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; opacity: .92; }
.hero .meta span b { color: var(--gold-2); font-weight: 600; }

/* Document navigation */
.docnav { position: sticky; top: 0; z-index: 5; background: #fff; border-bottom: 1px solid var(--line); }
.docnav .wrap {
  max-width: var(--max); margin: 0 auto; padding: 0 20px;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
}
.docnav .wrap::-webkit-scrollbar { display: none; }
.docnav a {
  padding: 14px 14px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px;
  border-bottom: 3px solid transparent; white-space: nowrap;
}
.docnav a:hover { color: var(--navy); }
.docnav a.active { color: var(--navy); border-bottom-color: var(--gold); }

/* Main column */
main { max-width: var(--max); margin: 0 auto; padding: 28px 20px 64px; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 26px; margin: 0 0 22px; box-shadow: 0 2px 12px rgba(8, 26, 68, .05);
}
.lead { font-size: 17px; }
.toc h2 { margin-top: 0; font-size: 14px; letter-spacing: .7px; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 22px; columns: 2; column-gap: 34px; }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a { text-decoration: none; color: var(--navy); font-weight: 600; }
.toc a:hover { text-decoration: underline; }

section { margin: 34px 0; scroll-margin-top: 64px; }
section h2 {
  font-size: 22px; margin: 0 0 12px; padding-bottom: 8px;
  border-bottom: 2px solid var(--gold-2); color: var(--navy);
}
section h3 { font-size: 17px; margin: 22px 0 8px; color: var(--navy); }
p { margin: 10px 0; }
ul, ol { padding-left: 24px; }
li { margin: 6px 0; }
li::marker { color: var(--pitch); }

/* Tables */
.tablewrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; margin: 14px 0; background: #fff; }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: #eef3fc; color: var(--navy); font-weight: 700; font-size: 13px; letter-spacing: .3px; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--navy); }

/* Callouts and tags */
.note, .ok { border-radius: 12px; padding: 14px 18px; margin: 16px 0; border: 1px solid; }
.note { background: var(--note); border-color: var(--note-line); }
.ok { background: var(--ok); border-color: var(--ok-line); }
.note b, .ok b { color: var(--navy); }
.tag {
  display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; background: var(--gold-2); color: #5a3a00; vertical-align: middle;
}
.tag.green { background: #c9f0d8; color: #0e5a2c; }

/* Numbered steps */
.steps { counter-reset: step; list-style: none; padding: 0; margin: 14px 0; }
.steps li {
  position: relative; padding: 12px 16px 12px 64px; margin: 10px 0;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
}
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 14px; top: 11px; width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: var(--navy);
  font-weight: 900; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(0, 0, 0, .18);
}

/* Contact block */
.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact .item { background: #f6f8fd; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.contact .item b {
  display: block; color: var(--navy); margin-bottom: 4px; font-size: 12.5px; text-transform: uppercase; letter-spacing: .4px;
}

/* Overview cards */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; }
.doc {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  box-shadow: 0 2px 12px rgba(8, 26, 68, .05); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.doc:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(8, 26, 68, .10); border-color: var(--gold-2); color: var(--ink); }
.doc .icon {
  width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 23px;
  background: linear-gradient(180deg, #eaf1ff, #dce7fb); margin-bottom: 12px;
}
.doc h3 { margin: 0 0 6px; color: var(--navy); font-size: 18px; }
.doc p { margin: 0; color: var(--muted); font-size: 14.5px; }
.doc .go { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--blue); }

/* Footer */
footer { border-top: 1px solid var(--line); background: #fff; }
footer .wrap {
  max-width: var(--max); margin: 0 auto; padding: 22px 20px;
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: var(--muted);
}
footer a { color: var(--muted); }

@media (max-width: 640px) {
  .card { padding: 18px; }
  .toc ol { columns: 1; }
  .hero { padding: 26px 16px 26px; }
  .brand img { width: 52px; height: 52px; }
  main { padding: 20px 16px 52px; }

  /* every document link stays in sight on a phone */
  .docnav { position: static; }
  .docnav .wrap { flex-wrap: wrap; padding: 0 8px; }
  .docnav a { padding: 10px 8px; }

  /* tables become one card per row, each value under its column name */
  .tablewrap { overflow: visible; border: 0; background: transparent; }
  .tablewrap table { min-width: 0; }
  .tablewrap thead { display: none; }
  .tablewrap tr {
    display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px;
    margin: 0 0 10px; padding: 6px 0; box-shadow: 0 2px 10px rgba(8, 26, 68, .04);
  }
  .tablewrap td { display: block; border: 0; padding: 6px 16px; }
  .tablewrap td[data-label]::before {
    content: attr(data-label); display: block; margin-bottom: 2px;
    font-size: 11.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--muted);
  }
}

@media print {
  .docnav { display: none; }
  body { background: #fff; }
  .hero { background: var(--navy) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .card { box-shadow: none; }
  a { color: inherit; }
}
