/* ==========================================================================
   OinkDrop — legal.css
   Sub-page styles: banner, breadcrumb, prose content, sidebar TOC.
   Loaded on: about.html, terms.html, licensing.html, privacy.html, refund.html
   after main.css.
   ========================================================================== */

/* ==========================================================================
   Page banner
   ========================================================================== */
.page-banner {
  padding: 72px var(--gutter) 60px;
  background: linear-gradient(180deg, var(--bg-3) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  /* soft warm glow from the left */
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: radial-gradient(ellipse 600px 400px at 10% 50%, rgba(255, 177, 98, 0.12), transparent 60%);
  pointer-events: none;
}
/* Optional hero photo (dev-log pages) — cover + scrim for legible text */
.page-banner.has-hero {
  background-size: cover;
  background-position: center;
}
.page-banner.has-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(100deg, rgba(17, 25, 34, 0.88) 0%, rgba(17, 25, 34, 0.5) 45%, rgba(17, 25, 34, 0.82) 100%);
}
.page-banner-inner {
  max-width: var(--max);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-dim); transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { color: var(--text-faint); }
.breadcrumb .here { color: var(--accent); }

/* Title */
.page-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(44px, 6.5vw, 92px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: #fff;
  max-width: 18ch;
}
.page-title em { font-style: italic; font-weight: 300; color: var(--accent); }

.page-meta {
  margin-top: 22px;
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   Prose content
   ========================================================================== */
.page-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 80px var(--gutter) 140px;
}
.page-content .lede {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
}
.page-content h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 28px;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 48px 0 18px;
  scroll-margin-top: 100px;
}
.page-content h2:first-child { margin-top: 0; }
.page-content h2 .num {
  color: var(--accent);
  font-weight: 300;
  font-style: italic;
  margin-right: 10px;
}
.page-content h3 {
  font-family: var(--body);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 32px 0 12px;
}
.page-content p {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--text);
  margin-bottom: 18px;
}
.page-content p:last-child { margin-bottom: 0; }
.page-content a {
  color: var(--accent);
  border-bottom: 1px solid rgba(255, 177, 98, 0.3);
  transition: border-color 0.2s ease;
}
.page-content a:hover { border-bottom-color: var(--accent); }
.page-content ul, .page-content ol {
  margin: 0 0 18px 22px;
  padding: 0;
}
.page-content li {
  font-size: 15.5px;
  line-height: 1.75;
  margin-bottom: 8px;
}
.page-content strong { color: #fff; font-weight: 500; }
.page-content hr {
  border: none;
  height: 1px;
  background: var(--line);
  margin: 48px 0;
}

/* ==========================================================================
   Page layout with sidebar TOC
   ========================================================================== */
.page-layout {
  max-width: var(--max);
  margin: 0 auto;
  padding: 60px var(--gutter) 140px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 80px;
  align-items: start;
}
.page-layout .page-content {
  padding: 0;
  max-width: 820px;
}

/* TOC sidebar */
.toc {
  position: sticky;
  top: 100px;
  font-size: 12px;
}
.toc-label {
  font-size: 11px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 70vh;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--text-faint) transparent;
}
.toc ol::-webkit-scrollbar { width: 4px; }
.toc ol::-webkit-scrollbar-thumb { background: var(--text-faint); border-radius: 2px; }
.toc li { margin-bottom: 10px; }
.toc a {
  color: var(--text-dim);
  font-size: 12.5px;
  line-height: 1.4;
  display: flex;
  gap: 8px;
  transition: color 0.2s ease;
}
.toc a:hover { color: var(--text); }
.toc a .n {
  color: var(--text-faint);
  font-family: var(--display);
  font-style: italic;
  flex: 0 0 22px;
}
.toc a.toc-active { color: var(--accent); }
.toc a.toc-active .n { color: var(--accent); }

/* ==========================================================================
   About page
   ========================================================================== */
.about-grid {
  max-width: var(--max);
  margin: 0 auto;
  padding: 100px var(--gutter) 140px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 100px;
  align-items: start;
}
.about-lede {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.25;
  color: #fff;
  letter-spacing: -0.01em;
}
.about-lede em {
  color: var(--accent);
  font-style: italic;
}
.about-body p {
  font-size: 16px;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text);
}
.about-body p:first-child { color: #fff; font-size: 17px; }

/* Values grid */
.values {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter) 140px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.value {
  background: var(--bg);
  padding: 48px 32px;
}
.value-num {
  font-family: var(--display);
  font-weight: 300;
  font-style: italic;
  font-size: 48px;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 20px;
}
.value h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 22px;
  color: #fff;
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.value p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-dim);
}

/* ==========================================================================
   Stub (coming-soon) page
   ========================================================================== */
.stub {
  max-width: 720px;
  margin: 0 auto;
  padding: 100px var(--gutter) 180px;
  text-align: center;
}
.stub-icon {
  width: 60px; height: 60px;
  border-radius: 50%;
  border: 1px solid var(--accent);
  display: grid;
  place-items: center;
  margin: 0 auto 28px;
  color: var(--accent);
}
.stub-icon svg { width: 26px; height: 26px; }
.stub h2 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 32px;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.stub h2 em { font-style: italic; font-weight: 300; color: var(--accent); }
.stub p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-dim);
  margin-bottom: 32px;
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* ==========================================================================
   Responsive (sub-pages)
   ========================================================================== */
@media (max-width: 960px) {
  .page-layout { grid-template-columns: 1fr; gap: 40px; }
  .toc { position: static; }
  .about-grid { grid-template-columns: 1fr; gap: 40px; padding: 60px var(--gutter) 80px; }
  .values { grid-template-columns: 1fr; padding: 0 var(--gutter) 80px; }
}
