/* ============================================
   LastCork Legal Pages (Privacy Policy & Terms)
   Long-form content styles — dark theme
   ============================================ */

/* --- Legal Page Layout --- */
.legal-page {
  padding-top: 6rem; /* clear fixed header */
  padding-bottom: 4rem;
}

.legal-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Page Header --- */
.legal-header {
  margin-bottom: 3rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

.legal-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
  color: var(--text);
}

.legal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-meta span {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

/* --- Table of Contents --- */
.legal-toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem 2rem;
  margin-bottom: 3rem;
}

.legal-toc h2 {
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 1rem;
  font-family: var(--font-body);
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc-counter;
}

.legal-toc ol li {
  counter-increment: toc-counter;
  padding: 0.25rem 0;
}

.legal-toc ol li::before {
  content: counter(toc-counter) ". ";
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
}

.legal-toc a {
  color: var(--text-muted);
  font-size: 0.9375rem;
  transition: color var(--transition);
}

.legal-toc a:hover {
  color: var(--accent);
}

/* --- Section Structure --- */
.legal-section {
  margin-bottom: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
}

.legal-section:last-child {
  border-bottom: none;
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  color: var(--accent);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  font-family: var(--font-heading);
}

.legal-section h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 1.5rem 0 0.75rem;
  font-family: var(--font-body);
}

/* --- Body Text --- */
.legal-section p {
  color: var(--text);
  font-size: 0.9375rem;
  line-height: 1.75;
  margin-bottom: 1rem;
}

.legal-section p:last-child {
  margin-bottom: 0;
}

/* --- Lists --- */
.legal-section ul,
.legal-section ol {
  list-style: none;
  margin: 0.75rem 0 1rem;
  padding: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 1.5rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-section ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65rem;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  opacity: 0.7;
}

.legal-section ol {
  counter-reset: legal-counter;
}

.legal-section ol li {
  counter-increment: legal-counter;
  position: relative;
  padding-left: 2rem;
  padding-top: 0.25rem;
  padding-bottom: 0.25rem;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text);
}

.legal-section ol li::before {
  content: counter(legal-counter) ".";
  position: absolute;
  left: 0;
  top: 0.25rem;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.875rem;
}

/* --- Highlight Box (callouts) --- */
.legal-callout {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.legal-callout p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.legal-callout strong {
  color: var(--text);
}

/* --- Important / Warning Box --- */
.legal-important {
  background: rgba(139, 0, 0, 0.1);
  border: 1px solid rgba(139, 0, 0, 0.3);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin: 1.25rem 0;
}

.legal-important p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

/* --- Emphasis & Links --- */
.legal-section strong {
  color: var(--text);
  font-weight: 600;
}

.legal-section em {
  color: var(--accent);
  font-style: normal;
  font-weight: 500;
}

.legal-section a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(201, 168, 76, 0.4);
  text-underline-offset: 3px;
}

.legal-section a:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent-hover);
}

/* --- Contact Block --- */
.legal-contact-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem;
  margin-top: 1.5rem;
}

.legal-contact-block p {
  margin: 0 0 0.5rem;
  font-size: 0.9375rem;
}

.legal-contact-block p:last-child {
  margin: 0;
}

/* --- Back to Top / Navigation --- */
.legal-nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  font-size: 0.875rem;
}

.legal-nav-bar a {
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.legal-nav-bar a:hover {
  color: var(--accent);
}

/* --- Responsive --- */
@media (max-width: 600px) {
  .legal-page {
    padding-top: 5rem;
  }

  .legal-toc {
    padding: 1.25rem;
  }

  .legal-section h2 {
    font-size: 1.1rem;
  }
}
