@import url('palette.css');
@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display&family=Inter:wght@400;500;600;700&display=swap');

/* === Reset === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  color: var(--text-secondary);
  background: var(--warm-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--terracotta);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

/* === Navigation === */
.nav {
  background: var(--warm-charcoal);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
}

.nav-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo:hover {
  text-decoration: none;
}

.nav-logo-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

.nav-logo-text {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--light-on-dark);
}

.nav-back {
  font-size: 13px;
  font-weight: 500;
  color: var(--accent-on-dark);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-back:hover {
  text-decoration: underline;
  color: var(--light-on-dark);
}

/* === Page Header === */
.page-header {
  background: var(--warm-charcoal);
  padding: 48px 0 56px;
  text-align: center;
}

.page-header-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px;
}

.page-title {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 36px;
  color: var(--light-on-dark);
  line-height: 1.25;
  margin-bottom: 12px;
}

.page-meta {
  font-size: 13px;
  color: var(--text-muted);
}

/* === Content === */
.legal-content {
  max-width: 780px;
  margin: 0 auto;
  padding: 48px 40px 80px;
}

.legal-content h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 24px;
  color: var(--text-primary);
  margin-top: 48px;
  margin-bottom: 16px;
  line-height: 1.3;
}

.legal-content h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: 32px;
  margin-bottom: 12px;
}

.legal-content p {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.legal-content ul,
.legal-content ol {
  margin-bottom: 16px;
  padding-left: 24px;
}

.legal-content li {
  font-size: 15px;
  line-height: 1.75;
  margin-bottom: 6px;
  color: var(--text-secondary);
}

.legal-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

/* === Table of Contents === */
.toc {
  background: var(--pale-rose);
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.toc-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--clay-rose);
  margin-bottom: 12px;
}

.toc ol {
  padding-left: 20px;
  margin-bottom: 0;
}

.toc li {
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 4px;
  color: var(--text-secondary);
}

.toc a {
  color: var(--text-secondary);
  text-decoration: none;
}

.toc a:hover {
  color: var(--terracotta);
  text-decoration: underline;
}

/* === Info Box === */
.info-box {
  background: var(--pale-rose);
  border-left: 3px solid var(--clay-rose);
  border-radius: 0 8px 8px 0;
  padding: 16px 20px;
  margin: 20px 0;
}

.info-box p {
  margin-bottom: 0;
  font-size: 14px;
}

/* === Data Table === */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 24px;
  font-size: 14px;
}

.data-table th,
.data-table td {
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--blush-cream);
  color: var(--text-secondary);
  line-height: 1.5;
}

.data-table th {
  font-weight: 600;
  color: var(--text-primary);
  background: var(--pale-rose);
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.data-table tr:last-child td {
  border-bottom: none;
}

/* === Processing Steps === */
.steps-list {
  list-style: none;
  padding-left: 0;
  counter-reset: step;
}

.steps-list li {
  counter-increment: step;
  padding-left: 36px;
  position: relative;
  margin-bottom: 12px;
}

.steps-list li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 2px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--terracotta);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Footer === */
.footer {
  background: var(--espresso);
  padding: 40px 0;
}

.footer-inner {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.footer-logo:hover {
  text-decoration: none;
}

.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
}

.footer-logo-text {
  color: var(--accent-on-dark);
  font-size: 14px;
  font-weight: 600;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-link {
  color: var(--text-muted);
  font-size: 12px;
}

.footer-link:hover {
  text-decoration: underline;
}

.footer-copy {
  color: var(--text-muted);
  font-size: 11px;
}

/* === Responsive === */
@media (max-width: 767px) {
  .nav-inner,
  .page-header-inner,
  .legal-content,
  .footer-inner {
    padding-left: 20px;
    padding-right: 20px;
  }

  .page-header {
    padding: 36px 0 40px;
  }

  .page-title {
    font-size: 28px;
  }

  .legal-content {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .legal-content h2 {
    font-size: 20px;
    margin-top: 36px;
  }

  .data-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    flex-direction: column;
    gap: 12px;
  }
}
