﻿/* ==========================================================================
   LEGAL PAGE STYLES
   ========================================================================== */

.legal-page {
  padding-top: 7rem;
  padding-bottom: 5rem;
}

/* Breadcrumb */
.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

.legal-breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color var(--transition);
}

.legal-breadcrumb a:hover {
  color: var(--text-main);
}

/* Main title */
.legal-main-title {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.legal-updated {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 2.5rem;
}

/* Table of contents */
.legal-toc {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.5rem 2rem;
  margin-bottom: 3.5rem;
  display: inline-block;
  min-width: 280px;
}

.toc-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.legal-toc ol {
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

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

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

/* Sections */
.legal-section {
  margin-bottom: 2rem;
  scroll-margin-top: 90px;
}

.legal-section-title {
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.04em;
  color: var(--text-main);
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-subtle);
}

.legal-intro {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.75;
}

.legal-section h3 {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-main);
  margin-top: 1.75rem;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
}

.legal-section p {
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
}

.legal-section ul {
  color: var(--text-muted);
  padding-left: 1.5rem;
  line-height: 1.8;
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.legal-section ul li {
  margin-bottom: 0.3rem;
}

.legal-section a {
  color: var(--text-main);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity var(--transition);
}

.legal-section a:hover {
  opacity: 0.75;
}

/* Tables */
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
}

.legal-table th,
.legal-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border: 1px solid var(--border-subtle);
}

.legal-table thead th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.legal-table tbody th {
  background: var(--bg-surface);
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  width: 140px;
}

.legal-table tbody td {
  color: var(--text-main);
}

/* Note */
.legal-note {
  background: var(--bg-surface);
  border-left: 3px solid var(--text-dim);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 0.75rem 1rem;
  font-size: 0.85rem !important;
  color: var(--text-dim) !important;
}

/* Divider */
.legal-divider {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 3rem 0;
}

/* Back button */
.legal-back {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border-subtle);
}

/* Footer legal links */
.footer-legal-links {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.85rem;
}

.footer-legal-links a {
  color: var(--text-dim);
  text-decoration: none;
  transition: color var(--transition);
}

.footer-legal-links a:hover {
  color: var(--text-muted);
}

.footer-legal-links span {
  color: var(--text-dim);
}

/* Responsive */
@media (max-width: 768px) {
  .legal-main-title {
    font-size: 2.2rem;
  }

  .legal-toc {
    width: 100%;
  }

  .legal-table {
    font-size: 0.8rem;
  }

  .legal-table tbody th {
    width: 100px;
  }
}
