/* 정스포츠 — 온라인 클래스 스타일 (LiveKlass 유사, 라이트 테마) */
:root {
  --color-primary: #1a3a5c;
  --color-primary-dark: #0f2847;
  --color-accent: #e85d4a;
  --color-accent-hover: #d14a38;
  --color-teal: #0d9488;
  --color-bg: #ffffff;
  --color-bg-soft: #f4f6f9;
  --color-bg-muted: #eef1f6;
  --color-text: #1a1a2e;
  --color-text-muted: #5c6578;
  --color-border: #e2e8f0;
  --shadow-sm: 0 1px 3px rgba(26, 58, 92, 0.06);
  --shadow-md: 0 4px 20px rgba(26, 58, 92, 0.1);
  --shadow-lg: 0 12px 40px rgba(26, 58, 92, 0.12);
  --radius: 12px;
  --radius-lg: 16px;
}

* { font-family: 'Noto Sans KR', -apple-system, sans-serif; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body.theme-light { background: var(--color-bg); color: var(--color-text); margin: 0; }

/* ── Navigation ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(255,255,255,.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}
.site-nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 1.25rem;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.site-logo { display: flex; align-items: center; gap: .5rem; text-decoration: none; color: var(--color-text); }
.site-logo-mark {
  width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  color: #fff; font-weight: 900; font-size: .95rem;
  display: flex; align-items: center; justify-content: center;
}
.site-logo-text { font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-link {
  color: var(--color-text-muted); text-decoration: none; font-size: .9rem; font-weight: 500;
  padding: .45rem .85rem; border-radius: 8px; transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--color-primary); background: var(--color-bg-muted); }
.nav-auth { display: flex; align-items: center; gap: .5rem; }
.nav-greeting {
  color: #8a93a6 !important;
  font-size: .875rem;
  white-space: nowrap;
}
.nav-greeting strong {
  color: #5c6578 !important;
  font-weight: 600;
}

/* Mobile nav toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle:hover { background: var(--color-bg-muted); }
.nav-toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  border-radius: 1px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle.is-open .nav-toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (min-width: 769px) {
  .nav-menu { display: contents; }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
    margin-left: auto;
  }
  .nav-menu {
    display: none;
    position: fixed;
    top: 64px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: .75rem 1.25rem 1.25rem;
    flex-direction: column;
    align-items: stretch;
    gap: .75rem;
    max-height: calc(100dvh - 64px);
    overflow-y: auto;
    z-index: 49;
  }
  .nav-menu.is-open { display: flex; }
  .nav-links {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: 100%;
  }
  .nav-link {
    padding: .75rem .5rem;
    font-size: 1rem;
  }
  .nav-auth {
    flex-direction: column;
    align-items: stretch;
    gap: .5rem;
    width: 100%;
    padding-top: .75rem;
    border-top: 1px solid var(--color-border);
  }
  .nav-auth .btn-ghost,
  .nav-auth .btn-primary,
  .nav-auth .btn-navy {
    text-align: center;
    width: 100%;
  }
  .nav-greeting {
    text-align: center;
    white-space: normal !important;
    padding: .35rem .5rem;
  }
  body.nav-open { overflow: hidden; }
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block; background: var(--color-accent); color: #fff;
  padding: .65rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: .9rem;
  border: none; cursor: pointer; text-decoration: none; text-align: center;
  transition: background .2s, transform .15s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(232, 93, 74, .35);
}
.btn-primary:hover { background: var(--color-accent-hover); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary.btn-lg { padding: .85rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-primary.btn-block { display: block; width: 100%; }

.btn-outline {
  display: inline-block; background: #fff; color: var(--color-primary);
  padding: .65rem 1.5rem; border-radius: 8px; font-weight: 600; font-size: .9rem;
  border: 2px solid var(--color-primary); cursor: pointer; text-decoration: none;
  transition: all .2s;
}
.btn-outline:hover { background: var(--color-primary); color: #fff; }

.btn-ghost {
  display: inline-block; color: var(--color-text-muted); padding: .45rem .9rem;
  border-radius: 8px; font-size: .875rem; font-weight: 500; text-decoration: none;
  border: none; background: transparent; cursor: pointer; transition: all .2s;
}
.btn-ghost:hover { color: var(--color-primary); background: var(--color-bg-muted); }

.btn-navy {
  display: inline-block; background: var(--color-primary); color: #fff;
  padding: .65rem 1.5rem; border-radius: 8px; font-weight: 700; font-size: .9rem;
  border: none; cursor: pointer; text-decoration: none; transition: background .2s;
}
.btn-navy:hover { background: var(--color-primary-dark); }

/* ── Cards ── */
.card {
  background: #fff; border-radius: var(--radius-lg);
  border: 1px solid var(--color-border); box-shadow: var(--shadow-sm);
  transition: box-shadow .25s, transform .25s;
}
.card:hover { box-shadow: var(--shadow-md); }
.card-body { padding: 1.25rem; }

.course-card { overflow: hidden; text-decoration: none; color: inherit; display: block; }
.course-card:hover { transform: translateY(-4px); }
.course-thumb {
  width: 100%; aspect-ratio: 16/10; object-fit: cover; background: var(--color-bg-muted);
  display: flex; align-items: center; justify-content: center; font-size: 3rem;
}
.course-card .card-body { padding: 1rem 1.15rem 1.25rem; }

/* ── Badges ── */
.badge {
  display: inline-block; font-size: .7rem; font-weight: 700;
  padding: .2rem .55rem; border-radius: 6px;
}
.badge-level-beginner { background: #dcfce7; color: #15803d; }
.badge-level-intermediate { background: #fef9c3; color: #a16207; }
.badge-level-advanced { background: #fee2e2; color: #b91c1c; }
.badge-free { background: #dbeafe; color: #1d4ed8; }
.badge-hot { background: var(--color-accent); color: #fff; }

/* ── Section ── */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--color-bg-soft); }
.section-title { font-size: 1.75rem; font-weight: 800; text-align: center; margin-bottom: .75rem; color: var(--color-text); }
.section-desc { text-align: center; color: var(--color-text-muted); margin-bottom: 2.5rem; max-width: 560px; margin-left: auto; margin-right: auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Hero ── */
.hero {
  padding-top: 64px;
  min-height: auto;
  background: linear-gradient(135deg, #4a7eb5 0%, #5e94c4 45%, #72a5d1 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1626224583764-f87db7ac1f88?w=1600&q=80') center/cover;
  opacity: .1;
}
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.25rem 1.25rem 2.75rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
}
.hero-tag {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px; padding: .35rem 1rem; font-size: .8rem; font-weight: 600;
  margin-bottom: 1.25rem;
}
.hero h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); font-weight: 900; line-height: 1.25; margin-bottom: 1.25rem; }
.hero-lead { font-size: 1.05rem; line-height: 1.7; color: rgba(255,255,255,.92); margin-bottom: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 1.5rem; font-size: .85rem; color: rgba(255,255,255,.85); }
.hero-stats strong { display: block; font-size: 1.25rem; color: #fff; font-weight: 800; }

/* 히어로 보조 CTA — 밝은 배경 + 진회색 글자 */
.btn-hero-light {
  display: inline-block;
  background: #fff;
  color: #4a5568;
  padding: .85rem 2rem;
  border-radius: 10px;
  font-weight: 600;
  font-size: 1rem;
  border: 1px solid rgba(255,255,255,.6);
  text-decoration: none;
  transition: background .2s, color .2s;
  box-shadow: 0 2px 8px rgba(26, 58, 92, .08);
}
.btn-hero-light:hover {
  background: #f8fafc;
  color: #1a1a2e;
}

.video-frame {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
  background: #000; aspect-ratio: 16/9; position: relative;
}
.video-frame img,
.video-frame video { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-frame video.playing { object-fit: contain; }
.video-play {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.25); cursor: pointer; border: 0; padding: 0; width: 100%;
}
.video-frame.is-playing .video-play { display: none; }
.video-play-btn {
  width: 72px; height: 72px; border-radius: 50%; background: var(--color-accent);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 30px rgba(232,93,74,.5);
}
.video-play-btn svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }

/* ── Feature grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.5rem; }
.feature-item {
  background: #fff; border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1px solid var(--color-border); text-align: center;
}
.feature-icon {
  width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 14px;
  background: var(--color-bg-soft); display: flex; align-items: center; justify-content: center;
  font-size: 1.75rem;
}
.feature-item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .5rem; }
.feature-item p { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }

/* ── Steps ── */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.5rem; }
.step-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--color-border); position: relative;
}
.step-num {
  width: 32px; height: 32px; border-radius: 8px; background: var(--color-primary);
  color: #fff; font-weight: 800; font-size: .85rem;
  display: flex; align-items: center; justify-content: center; margin-bottom: 1rem;
}
.step-card h3 { font-weight: 700; margin-bottom: .5rem; }
.step-card p { font-size: .875rem; color: var(--color-text-muted); line-height: 1.6; }

/* ── Pricing ── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; max-width: 960px; margin: 0 auto; }
.pricing-card {
  background: #fff; border-radius: var(--radius-lg); padding: 2rem;
  border: 2px solid var(--color-border); position: relative;
}
.pricing-card.featured {
  border-color: var(--color-accent); box-shadow: var(--shadow-lg);
}
.pricing-card .plan-name { font-weight: 700; color: var(--color-text-muted); margin-bottom: .5rem; }
.pricing-card .price { font-size: 2.25rem; font-weight: 900; color: var(--color-text); }
.pricing-card .price-sub { font-size: .85rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.pricing-card li {
  font-size: .875rem; padding: .4rem 0; display: flex; align-items: flex-start; gap: .5rem;
  color: var(--color-text-muted);
}
.pricing-card li::before { content: '✓'; color: var(--color-teal); font-weight: 700; }
.pricing-card li.disabled { opacity: .45; }
.pricing-card li.disabled::before { content: '—'; color: #ccc; }
.pricing-badge {
  position: absolute; top: -12px; right: 1.25rem;
  background: var(--color-accent); color: #fff; font-size: .7rem; font-weight: 800;
  padding: .3rem .75rem; border-radius: 999px;
}
.payment-badges {
  display: flex; align-items: center; justify-content: center; gap: 1rem;
  margin-top: 2rem; flex-wrap: wrap; color: var(--color-text-muted); font-size: .8rem;
}
.payment-badges span {
  background: #fff; border: 1px solid var(--color-border); padding: .35rem .75rem;
  border-radius: 6px; font-weight: 600;
}

/* ── Testimonial ── */
.review-card {
  background: #fff; border-radius: var(--radius-lg); padding: 1.5rem;
  border: 1px solid var(--color-border);
}
.review-stars { color: #f59e0b; margin-bottom: .75rem; }
.review-text { font-size: .9rem; color: var(--color-text-muted); line-height: 1.7; margin-bottom: 1rem; }
.review-author { display: flex; align-items: center; gap: .75rem; }
.review-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--color-primary), var(--color-teal));
  color: #fff; font-weight: 700; font-size: .85rem;
  display: flex; align-items: center; justify-content: center;
}

/* ── Footer ── */
.site-footer {
  background: var(--color-primary-dark); color: rgba(255,255,255,.75);
  padding: 3rem 0 1.5rem; font-size: .875rem;
}
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media (max-width: 768px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.5rem; text-align: center; font-size: .8rem; }

/* ── Forms ── */
.input-field {
  width: 100%; padding: .75rem 1rem; border: 1px solid var(--color-border);
  border-radius: 8px; font-size: .9rem; color: var(--color-text);
  background: #fff; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input-field:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px rgba(26,58,92,.1); }
.input-field::placeholder { color: #94a3b8; }
.form-label { display: block; font-size: .8rem; font-weight: 600; color: var(--color-text-muted); margin-bottom: .4rem; }

.tab-active { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); font-weight: 700; }
.tab-inactive { color: var(--color-text-muted); border-bottom: 2px solid transparent; }

/* ── Filters ── */
.filter-btn {
  padding: .4rem 1rem; border-radius: 999px; font-size: .8rem; font-weight: 600;
  border: 1px solid var(--color-border); background: #fff; color: var(--color-text-muted);
  cursor: pointer; transition: all .2s;
}
.filter-btn.active, .filter-btn:hover {
  background: var(--color-primary); color: #fff; border-color: var(--color-primary);
}

/* ── Page header ── */
.page-header {
  padding-top: 64px; background: linear-gradient(180deg, var(--color-bg-soft) 0%, #fff 100%);
  padding-bottom: 2rem; text-align: center;
}
.page-header h1 { font-size: 1.75rem; font-weight: 800; margin-bottom: .35rem; }
.page-header p { color: var(--color-text-muted); max-width: 520px; margin: 0 auto; }

/* ── Courses page ── */
.courses-main { padding: 2rem 1.25rem 4rem; }
.courses-filters {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 2.75rem;
}
.courses-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  justify-content: center;
}
.courses-filter-label {
  font-size: .8rem;
  font-weight: 700;
  color: var(--color-text-muted);
  margin-right: .25rem;
  min-width: 2rem;
}
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
@media (min-width: 640px) {
  .courses-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 320px));
    gap: 1.5rem;
    justify-content: center;
  }
  .course-card .card-body { padding: 1.15rem 1.35rem 1.4rem; }
  .course-thumb { font-size: 3.5rem; }
}
.courses-empty {
  text-align: center;
  padding: 4rem 0;
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Course detail ── */
#video-player { width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--radius-lg); }
.lesson-item {
  cursor: pointer; border-radius: 8px; padding: .75rem 1rem;
  border: 1px solid transparent; transition: all .2s;
}
.lesson-item:hover { background: var(--color-bg-soft); }
.lesson-item.active { background: #eff6ff; border-color: #93c5fd; }
.lesson-item.locked { opacity: .5; cursor: not-allowed; }

/* ── Dashboard ── */
.status-pending { background: #fef3c7; color: #b45309; font-size: .7rem; padding: .2rem .5rem; border-radius: 6px; font-weight: 700; }
.status-reviewed { background: #d1fae5; color: #047857; font-size: .7rem; padding: .2rem .5rem; border-radius: 6px; font-weight: 700; }
.tab-active-dash { color: var(--color-primary); border-bottom: 2px solid var(--color-primary); }
.tab-inactive-dash { color: var(--color-text-muted); border-bottom: 2px solid transparent; }
.modal-bg { background: rgba(15,40,71,.6); backdrop-filter: blur(4px); }

/* ── Upload ── */
.drop-zone {
  border: 2px dashed var(--color-border); border-radius: var(--radius-lg);
  padding: 2.5rem; text-align: center; cursor: pointer; transition: all .2s;
  background: var(--color-bg-soft);
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--color-teal); background: #f0fdfa;
}
.progress-track { background: var(--color-bg-muted); border-radius: 999px; height: 8px; overflow: hidden; }
.progress-bar { height: 100%; background: linear-gradient(90deg, var(--color-teal), var(--color-primary)); transition: width .3s; border-radius: 999px; }

/* ── Login layout ── */
.auth-page { min-height: 100vh; display: grid; }
@media (min-width: 1024px) {
  .auth-page { grid-template-columns: 1fr 1fr; }
}
.auth-side {
  background: linear-gradient(135deg, #0f2847, #1a3a5c);
  color: #fff;
  min-height: 100vh;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: left;
}
.auth-side-logo {
  width: 100%;
  max-width: 360px;
  flex-shrink: 0;
  color: #fff;
  justify-content: flex-start;
}
.auth-side-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 0;
}
.auth-side-content {
  width: 100%;
  max-width: 360px;
}
.auth-side h2 { font-size: 1.75rem; font-weight: 800; margin-bottom: 1rem; }
.auth-side p { color: rgba(255,255,255,.8); line-height: 1.7; margin-bottom: 2rem; }
.auth-side .auth-side-note {
  margin-bottom: 0;
  padding-top: 2rem;
  font-size: .8rem;
  opacity: .6;
  color: rgba(255,255,255,.8);
}
.auth-benefits { list-style: none; padding: 0; margin: 0; }
.auth-benefits li {
  display: flex; align-items: flex-start; gap: .75rem; margin-bottom: 1rem;
  font-size: .9rem; color: rgba(255,255,255,.9);
}
.auth-benefits li::before { content: '✓'; color: #5eead4; font-weight: 800; }
.auth-form-wrap {
  display: flex; align-items: center; justify-content: center;
  padding: 2rem 1.25rem; background: var(--color-bg-soft);
}
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border-radius: var(--radius-lg);
  padding: 2rem; box-shadow: var(--shadow-md); border: 1px solid var(--color-border);
}

/* ── Legal pages (terms / privacy) ── */
.legal-main {
  max-width: 820px;
  padding: 1.5rem 1.25rem 4rem;
}
.legal-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.legal-meta {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9rem;
  color: var(--color-text-muted);
}
.legal-badge {
  display: inline-block;
  background: var(--color-teal);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 999px;
}
.legal-badge-old {
  background: var(--color-text-muted);
}
.legal-version-wrap {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  min-width: 220px;
}
.legal-select {
  padding: .55rem .75rem;
  font-size: .85rem;
  cursor: pointer;
}
.legal-changelog {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
  line-height: 1.65;
  color: var(--color-text-muted);
}
.legal-changelog strong {
  display: block;
  color: var(--color-text);
  font-size: .95rem;
  margin-bottom: .65rem;
}
.legal-changelog .legal-k {
  display: inline-block;
  min-width: 4.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-right: .35rem;
}
.legal-changelog ul {
  margin: .35rem 0 0;
  padding-left: 1.2rem;
}
.legal-changelog li { margin-bottom: .25rem; }
.legal-note {
  margin: .85rem 0 0;
  padding: .65rem .85rem;
  background: #fff7ed;
  border-radius: 8px;
  color: #9a3412;
  font-size: .8rem;
}
.legal-toc {
  padding: 1.15rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: .875rem;
}
.legal-toc strong {
  display: block;
  margin-bottom: .65rem;
  font-size: .95rem;
}
.legal-toc ol {
  margin: 0;
  padding-left: 1.25rem;
  line-height: 1.9;
  color: var(--color-text-muted);
}
.legal-toc a {
  color: var(--color-primary);
  text-decoration: none;
}
.legal-toc a:hover { text-decoration: underline; }
.legal-doc {
  padding: 2rem 1.75rem;
}
.legal-doc .legal-lead {
  font-size: .95rem;
  line-height: 1.75;
  color: var(--color-text-muted);
  margin: 0 0 1.75rem;
}
.legal-doc h2 {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-primary);
  margin: 2rem 0 .85rem;
  padding-top: .25rem;
  scroll-margin-top: 80px;
}
.legal-doc h2:first-child { margin-top: 0; }
.legal-doc p {
  font-size: .9rem;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0 0 .85rem;
}
.legal-doc ol, .legal-doc ul {
  font-size: .9rem;
  line-height: 1.8;
  margin: 0 0 1rem;
  padding-left: 1.35rem;
}
.legal-doc li { margin-bottom: .35rem; }
.legal-doc li ul {
  margin: .4rem 0 .5rem;
}
.legal-doc a { color: var(--color-primary); }
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .82rem;
  line-height: 1.55;
}
.legal-table th,
.legal-table td {
  border: 1px solid var(--color-border);
  padding: .65rem .75rem;
  text-align: left;
  vertical-align: top;
}
.legal-table th {
  background: var(--color-bg-soft);
  font-weight: 700;
  white-space: nowrap;
}
.legal-related {
  margin-top: 1.5rem;
  text-align: center;
}
.legal-related a {
  color: var(--color-primary);
  font-weight: 600;
  font-size: .9rem;
  text-decoration: none;
}
.legal-related a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .legal-doc { padding: 1.35rem 1.1rem; }
  .legal-toolbar { flex-direction: column; align-items: stretch; }
  .legal-version-wrap { min-width: 0; }
}

/* ── Utilities ── */
.text-muted { color: var(--color-text-muted); }
.text-accent { color: var(--color-accent); }
.pt-nav { padding-top: 64px; }
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

@media (min-width: 1024px) {
  .course-layout { display: grid !important; grid-template-columns: 2fr 1fr; gap: 2rem; }
}
