/* Policy-specific styles for /en/policy and /es/policy, after /css/shared.css
   (tokens, nav, footer). Same structure as PantanOS's policy.css. */

/* Offset the fixed .nav so content starts below it. */
body { padding-top: 56px; }

main { padding: 24px 0 48px; }

main a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

main a:hover {
  text-decoration: underline;
  color: var(--primary-dark);
}

/* One white card per section, so the legal copy stays high-contrast. */
.container {
  max-width: 800px;
  margin: 24px auto;
  background-color: var(--surface);
  padding: 40px;
  box-shadow: var(--shadow);
  border-radius: var(--radius);
}

/* No extra space under the last paragraph or list of a card. */
.container > :last-child { margin-bottom: 0; }

.container h1 {
  text-align: center;
  color: var(--text-primary);
  font-size: 2.25rem;
  margin-bottom: 0.5rem;
}

h2 {
  border-bottom: 2px solid var(--divider);
  color: var(--text-primary);
  padding-bottom: 10px;
  margin-bottom: 16px;
  font-size: 1.5rem;
  font-weight: 600;
  /* Keep anchored sections (e.g. #rights) clear of the fixed nav. */
  scroll-margin-top: 72px;
}

p,
li {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

ul {
  list-style-type: disc;
  margin-left: 20px;
}

li strong,
p strong {
  color: var(--text-primary);
}

code {
  font-size: 0.9em;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 6px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
  font-size: 0.95rem;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 10px 8px;
  border-bottom: 1px solid var(--divider);
  color: var(--text-secondary);
}

th { color: var(--text-primary); font-weight: 600; }

/* Version label and date near the top of the document. */
.policy-version {
  text-align: center;
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.25rem;
}

.text-center { text-align: center; }
.text-sm {
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 768px) {
  .container {
    padding: 24px;
    margin: 16px;
    border-radius: var(--radius-sm);
  }
  .container h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }
  table { font-size: 0.875rem; }
}
