/* Shared styles for the QBankGH Terms and Privacy pages.
   Tokens come from design/qbankgh-design/DESIGN.md. Dark mode colours are
   not designed yet, so these pages are light only. */

:root {
  --red: #CE1126;
  --red-text: #A30D1E;
  --gold: #FCD116;
  --green: #006B3F;
  --green-text: #00502F;
  --green-hover: #004D2D;
  --black: #141414;
  --grey-text: #5B5A55;
  --surface: #FFFFFF;
  --surface-soft: #F6F5F0;
  --line: #E6E3DA;
  --line-row: #EEEBE3;
  --gold-tint: #FFF8D6;
  --gold-tint-border: #F0DE8A;
  --green-tint: #E6F2EC;

  --font-display: "Archivo Black", "Archivo", sans-serif;
  --font-body: "Archivo", system-ui, sans-serif;

  --radius-card: 16px;
  --radius-panel: 14px;
  --max-width: 760px;

  color-scheme: light;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

/* Header follows the teacher dashboard web header. */
header.top {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

header.top .bar {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}

header.top .bar img { width: 44px; height: 44px; }

header.top .wordmark {
  font-family: var(--font-display);
  font-size: 20px;
}

/* Red, gold, green stripe (colour order rule: red → gold → green). */
.stripe {
  height: 4px;
  background: linear-gradient(to right,
    var(--red) 0 33.33%, var(--gold) 33.33% 66.66%, var(--green) 66.66% 100%);
}

main, footer .inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

main { padding: 24px 16px 40px; }

h1 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.2;
  margin: 0 0 4px;
}

.updated {
  margin: 0 0 20px;
  color: var(--grey-text);
  font-size: 13px;
}

.summary {
  background: var(--gold-tint);
  border: 1px solid var(--gold-tint-border);
  border-radius: var(--radius-panel);
  padding: 12px 14px;
  margin-bottom: 20px;
}

.summary p { margin: 0; font-size: 15px; }

nav.toc {
  background: var(--surface-soft);
  border-radius: var(--radius-card);
  padding: 14px 16px;
  margin-bottom: 8px;
}

nav.toc h2 {
  margin: 0 0 8px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--grey-text);
}

nav.toc ol { margin: 0; padding-left: 1.4rem; }
nav.toc li { margin-bottom: 2px; }

h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 20px;
  line-height: 1.3;
  margin: 36px 0 8px;
  scroll-margin-top: 16px;
}

ul { padding-left: 1.25rem; }
li { margin-bottom: 4px; }

a { color: var(--green); font-weight: 600; }
a:hover { color: var(--green-hover); }

table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: 15px;
}

th {
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--grey-text);
  padding: 8px;
  border-bottom: 1px solid var(--line);
}

td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line-row);
  vertical-align: top;
}

.contact-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  margin-top: 8px;
  border-radius: var(--radius-card);
  background: var(--green);
  color: var(--surface);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
}

.contact-button:hover { background: var(--green-hover); color: var(--surface); }

footer {
  border-top: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--grey-text);
  font-size: 13px;
}

footer .inner { padding: 20px 16px 28px; }

footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }

footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

footer p { margin: 8px 0 0; }
