/* Legal pages (Terms + Privacy) for The AI Course / AI With Remy.
   Self-contained and dependency-light: loads brand fonts + tokens, no site JS,
   nothing hidden by default. Restrained on purpose - these pages are for reading. */

@font-face {
  font-family: 'PP Neue Bit';
  src: url('assets/fonts/ppneuebit-bold.woff2') format('woff2'),
       url('assets/fonts/ppneuebit-bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #121212;
  --ink-soft: #3a3a3a;
  --muted: #7E7E7E;
  --line: rgba(33, 33, 33, 0.12);
  --accent: #173EF5;
  --bg: #FFFFFF;
  --maxw: 720px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Header */
.lg-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.5rem;
}
.lg-head__brand { display: inline-flex; align-items: center; }
.lg-head__brand img { height: 26px; width: auto; display: block; }
.lg-head__back {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-decoration: none;
  white-space: nowrap;
}
.lg-head__back:hover { color: var(--accent); }

.lg-rule { border: 0; border-top: 1px solid var(--line); margin: 0; }

/* Content */
.lg-main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.lg-kicker {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin: 0 0 0.75rem;
}
.lg-title {
  font-family: 'PP Neue Bit', 'Space Mono', monospace;
  font-weight: 700;
  font-size: clamp(2.25rem, 6vw, 3.25rem);
  line-height: 1.02;
  letter-spacing: 0.01em;
  margin: 0 0 0.5rem;
}
.lg-updated {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0 0 2.5rem;
}
.lg-intro {
  font-size: 1.0625rem;
  color: var(--ink-soft);
  margin: 0 0 2.5rem;
}

.lg-main h2 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  margin: 2.5rem 0 0.75rem;
}
.lg-main h3 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  margin: 1.5rem 0 0.5rem;
}
.lg-main p { margin: 0 0 1rem; }
.lg-main a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.lg-main ul { margin: 0 0 1.25rem; padding-left: 1.25rem; }
.lg-main li { margin: 0 0 0.5rem; }
.lg-main li::marker { color: var(--accent); }
.lg-main strong { font-weight: 600; }

/* Refund guarantee callout */
.lg-callout {
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  background: #FBFBFE;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0 2rem;
}
.lg-callout p:last-child { margin-bottom: 0; }
.lg-callout ul { margin-bottom: 1rem; }

/* Footer */
.lg-foot {
  border-top: 1px solid var(--line);
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  text-align: center;
}
.lg-foot__links {
  font-family: 'Space Mono', monospace;
  font-size: 0.75rem;
  color: var(--muted);
  margin: 0;
}
.lg-foot__links a { color: var(--muted); text-decoration: none; }
.lg-foot__links a:hover { color: var(--accent); }
.lg-foot__links span { margin: 0 0.5rem; color: var(--line); }
.lg-foot__copy {
  font-family: 'Space Mono', monospace;
  font-size: 0.6875rem;
  color: var(--muted);
  margin: 0.75rem 0 0;
}

@media (max-width: 520px) {
  .lg-main { padding-top: 2rem; }
  .lg-title { font-size: 2rem; }
}
