/* Shared landing chrome: page + footer */
:root {
  --ink: #0f2438;
  --muted: #51657a;
  --soft: #7a8fa3;
  --line: rgba(20, 90, 140, 0.14);
  --accent: #1f8fd8;
  --accent-deep: #0f6fad;
  --paper: #f4f8fc;
  --surface: rgba(255, 255, 255, 0.78);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  background:
    radial-gradient(1200px 700px at 88% -12%, rgba(26, 134, 207, 0.22), transparent 60%),
    radial-gradient(900px 560px at -12% 12%, rgba(150, 198, 230, 0.18), transparent 55%),
    linear-gradient(180deg, #d9ebf8 0%, #eef4fa 42%, #e3ebf3 100%);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); font-weight: 700; }

.wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

/* Legal / inner pages */
.page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 24px;
}

.page-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.page-brand {
  font-family: Syne, Manrope, sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
  color: var(--ink);
}

.back {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}

.page h1 {
  margin: 0;
  flex: 1 1 100%;
  font-family: Syne, Manrope, sans-serif;
  font-size: clamp(24px, 4vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

@media (min-width: 640px) {
  .page h1 { flex: 1 1 auto; }
}

.card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 22px;
  padding: 22px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 18px 40px rgba(31, 90, 140, 0.06);
}

.meta { margin: 0 0 14px; color: var(--muted); font-size: 13px; }
.card h2 { margin: 20px 0 8px; font-size: 16px; font-weight: 800; color: var(--ink); }
.card h2:first-child { margin-top: 0; }
.card p, .card li { color: var(--muted); font-size: 14px; line-height: 1.55; }
.card p { margin: 0 0 10px; }
.card ul { margin: 0 0 10px; padding-left: 18px; }

.toc { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.toc a {
  text-decoration: none;
  font-size: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.8);
}

.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.doc-list a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.82);
  transition: transform .15s ease, border-color .15s ease;
}
.doc-list a:hover {
  transform: translateY(-1px);
  border-color: rgba(31, 143, 216, 0.35);
}
.doc-list span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td {
  text-align: left;
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
th { color: var(--ink); font-weight: 800; }

.btn-home {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 18px;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
  font-size: 14px;
}

/* Minimal footer (original) */
footer.site {
  margin-top: 40px;
  padding: 36px 0 48px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: 1.2fr 1fr;
}

@media (max-width: 780px) {
  .footer-grid { grid-template-columns: 1fr; }
}

footer.site .brand-mini {
  margin: 0;
  font-family: Syne, Manrope, sans-serif;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--ink);
}

footer.site p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  max-width: 36em;
}

footer.site .legal-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-content: start;
}

footer.site .legal-nav a {
  color: var(--accent-deep);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

footer.site .legal-nav a:hover {
  text-decoration: underline;
}

footer.site .platega-marker {
  margin: 18px 0 0;
  max-width: none;
  color: #dc2626;
  font-size: 15px;
  font-weight: 800;
}

footer.site .copy {
  margin-top: 10px;
  font-size: 12px;
  color: var(--soft);
  max-width: none;
}
