/* Terms & Conditions page — same palette and fonts as the contest page */
:root {
  --maroon: #7c1930;
  --maroon-deep: #6a1428;
  --maroon-dark: #5c1223;
  --gold: #c9a24a;
  --line: #eadfce;
  --text: #2c1810;
  --muted: #7a6a5d;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { background: #f3e5cf; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: radial-gradient(120% 50% at 50% 0%, #fffaf2 0%, #f8eee0 60%, #f3e5cf 100%) fixed;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Header ---------- */
.legal-header {
  border-bottom: 1px solid rgba(201, 162, 74, 0.3);
  background: rgba(255, 250, 242, 0.85);
}

.legal-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
}

.brand img { width: 40px; height: 40px; }

.brand-name {
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--maroon);
}

.brand-name sup { font-size: 0.42em; font-weight: 600; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  background: linear-gradient(180deg, #86213b 0%, var(--maroon-deep) 100%);
  box-shadow: 0 6px 14px -8px rgba(106, 20, 40, 0.7);
}

.back:hover { background: var(--maroon-dark); }

.back:focus-visible,
.brand:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 999px; }

/* ---------- Content ---------- */
.legal {
  max-width: 780px;
  margin: 28px auto 0;
  padding: 30px 20px 36px;
  background: #fff;
  border: 1px solid rgba(124, 25, 48, 0.07);
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(92, 18, 35, 0.04), 0 26px 50px -36px rgba(92, 18, 35, 0.4);
}

.legal .legal-eyebrow {
  margin: 0;
  line-height: 1.5;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: #a97a26;
}

.legal h1 {
  margin: 6px 0 18px;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--maroon-dark);
}

.legal section {
  padding: 18px 0 4px;
  border-top: 1px solid #f1e7d7;
  scroll-margin-top: 16px;
}

.legal h2 {
  margin: 0 0 8px;
  font-family: 'Poppins', 'Inter', system-ui, sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--maroon);
}

.legal p {
  margin: 0 0 12px;
  font-size: 15px;
  line-height: 1.7;
  color: #3d2a22;
  overflow-wrap: break-word;
}

/* Blanks the Promoter still has to fill in */
mark.fill {
  padding: 1px 3px;
  border-radius: 4px;
  color: inherit;
  background: rgba(201, 162, 74, 0.24);
}

/* ---------- Footer ---------- */
.legal-footer {
  padding: 22px 16px 30px;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
}

.legal-footer p { margin: 0; }

@media (min-width: 768px) {
  .legal-header-inner { padding: 12px 28px; }
  .brand img { width: 46px; height: 46px; }
  .brand-name { font-size: 22px; }
  .legal { margin-top: 40px; padding: 40px 48px 44px; }
  .legal h1 { font-size: 34px; }
  .legal h2 { font-size: 18px; }
  .legal p { font-size: 15.5px; }
}

@media (max-width: 380px) {
  .back { padding: 7px 11px; font-size: 12px; }
  .brand-name { font-size: 17px; }
}
