/* Shared styles for TeachBoard legal / informational pages
   (terms.html, privacy.html, refund.html, contact.html).
   Matches the visual language of features.html. */

:root {
  --bg: #0b0b14;
  --bg-2: #11111e;
  --bg-3: #181828;
  --border: #25253d;
  --border-2: #34345a;
  --text: #ecebff;
  --text-dim: #9a99c1;
  --text-faint: #6a698c;
  --accent: #7c5cff;
  --accent-2: #4ad3ff;
  --accent-3: #ff7ab6;
  --green: #50e3c2;
  --shadow: 0 24px 60px -20px rgba(124, 92, 255, 0.4);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
a { color: var(--accent-2); text-decoration: none; }
a:hover { color: var(--text); text-decoration: underline; }

/* ---------- Top nav (matches features.html) ---------- */
nav.top {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(11, 11, 20, 0.65);
  border-bottom: 1px solid var(--border);
}
nav.top .inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 28px;
  display: flex;
  align-items: center;
  gap: 28px;
}
nav.top .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--text);
}
nav.top .brand:hover { text-decoration: none; }
nav.top .brand img { width: 28px; height: 28px; }
nav.top .links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  align-items: center;
  font-size: 14px;
  color: var(--text-dim);
}
nav.top .links a { color: var(--text-dim); }
nav.top .links a:hover { color: var(--text); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border-2);
  background: var(--bg-3);
  color: var(--text);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.12s ease, border-color 0.12s ease;
}
.btn:hover { transform: translateY(-1px); background: #1f1f33; border-color: var(--accent); text-decoration: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(124, 92, 255, 0.6);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(124, 92, 255, 0.7); }

/* ---------- Header band ---------- */
.page-header {
  max-width: 860px;
  margin: 0 auto;
  padding: 80px 28px 32px;
  text-align: left;
}
.page-header .eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 14px;
}
.page-header h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.page-header h1 .em {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.page-header .updated {
  color: var(--text-faint);
  font-size: 14px;
}

/* ---------- Content column ---------- */
.content {
  max-width: 860px;
  margin: 0 auto;
  padding: 24px 28px 40px;
}
.content h2 {
  margin-top: 48px;
  margin-bottom: 16px;
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.content h2:first-child { margin-top: 8px; }
.content h3 {
  margin-top: 28px;
  margin-bottom: 10px;
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}
.content p {
  color: var(--text-dim);
  margin-bottom: 14px;
}
.content ul, .content ol {
  margin: 0 0 16px 22px;
  color: var(--text-dim);
}
.content ul li, .content ol li {
  margin-bottom: 8px;
}
.content strong { color: var(--text); font-weight: 600; }
.content em { color: var(--text); font-style: italic; }
.content code {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 5px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 13.5px;
  color: var(--text);
}

/* Callout box for important notes */
.callout {
  background: linear-gradient(135deg, rgba(124, 92, 255, 0.12) 0%, rgba(74, 211, 255, 0.06) 100%);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--accent);
  border-radius: 12px;
  padding: 18px 22px;
  margin: 20px 0 24px;
  color: var(--text);
}
.callout strong { color: var(--text); }
.callout p { color: var(--text-dim); margin-bottom: 6px; }
.callout p:last-child { margin-bottom: 0; }

/* Definition list — used for contact details */
.dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 14px 28px;
  margin: 24px 0;
  padding: 24px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
}
.dl dt {
  color: var(--text-faint);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  padding-top: 2px;
}
.dl dd {
  color: var(--text);
  font-size: 15px;
}

/* TOC sidebar for long pages — kept simple, no JS scroll-spy */
.toc {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 24px;
  margin: 0 0 32px;
}
.toc h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-faint);
  margin-bottom: 12px;
  font-weight: 700;
}
.toc ol {
  list-style: decimal;
  margin: 0 0 0 20px;
  color: var(--text-dim);
}
.toc ol li {
  margin-bottom: 6px;
  font-size: 14px;
}
.toc ol li a { color: var(--text-dim); }
.toc ol li a:hover { color: var(--text); text-decoration: none; }

/* ---------- Footer (matches features.html) ---------- */
footer {
  max-width: 1200px;
  margin: 80px auto 0;
  padding: 40px 28px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-faint);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 18px;
}
footer .links { display: flex; gap: 22px; flex-wrap: wrap; }
footer .links a { color: var(--text-faint); }
footer .links a:hover { color: var(--text); text-decoration: none; }

@media (max-width: 720px) {
  .page-header { padding: 56px 20px 24px; }
  .content { padding: 16px 20px 32px; }
  nav.top .links a:not(.btn) { display: none; }
  .dl { grid-template-columns: 1fr; gap: 4px 0; padding: 18px; }
  .dl dt { padding-top: 8px; }
  .dl dt:first-child { padding-top: 0; }
}

/* ---------- Footer feedback card (injected by /feedback.js) ---------- */
.fb-card {
  max-width: 860px;
  margin: 64px auto 0;
  padding: 32px 36px 30px;
  background: linear-gradient(180deg, var(--bg-2) 0%, var(--bg-3) 100%);
  border: 1px solid var(--border-2);
  border-radius: 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.fb-card::before {
  content: '';
  position: absolute;
  top: -120px; left: 30%;
  width: 380px; height: 240px;
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.22) 0%, transparent 65%);
  pointer-events: none;
}
.fb-card > * { position: relative; }
.fb-card-head {
  margin-bottom: 22px;
}
.fb-eyebrow {
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}
.fb-title {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.18;
  color: var(--text);
  margin-bottom: 12px;
}
.fb-title .fb-em {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.fb-blurb {
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
  margin: 0;
}
.fb-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.fb-input {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  padding: 12px 14px;
  border-radius: 10px;
  outline: none;
  transition: border-color 150ms ease, background 150ms ease;
}
.fb-input::placeholder { color: var(--text-faint); }
.fb-input:focus {
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.06);
}
.fb-textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.5;
}
.fb-submit {
  align-self: flex-start;
  padding: 11px 22px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px -8px rgba(124, 92, 255, 0.55);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}
.fb-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -8px rgba(124, 92, 255, 0.7);
}
.fb-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.fb-status {
  font-size: 13px;
  line-height: 1.5;
  min-height: 18px;
  color: var(--text-dim);
}
.fb-status-ok { color: var(--green); }
.fb-status-error { color: #ff8585; }

@media (max-width: 720px) {
  .fb-card { padding: 24px 22px; margin: 48px 16px 0; }
  .fb-title { font-size: 22px; }
}
