/* Páginas públicas de Plandtrip: privacidad, términos, normas y ayuda.
   Independientes de la app (no cargan JS ni Firebase). */
:root {
  --bg: #0b0d12;
  --surface: #13161e;
  --border: rgba(255, 255, 255, 0.09);
  --text: #f0ede6;
  --text2: #a3a8ba;
  --text3: #767c94;
  --accent: #e8c97a;
  --accent-soft: rgba(232, 201, 122, 0.1);
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #faf8f3;
    --surface: #ffffff;
    --border: rgba(20, 22, 30, 0.1);
    --text: #1c1e26;
    --text2: #4c5163;
    --text3: #7b8094;
    --accent: #a67c1c;
    --accent-soft: rgba(166, 124, 28, 0.08);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-underline-offset: 2px; }

.lg-top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.lg-top-inner {
  max-width: 820px;
  margin: 0 auto;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.lg-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.lg-brand img { width: 28px; height: 28px; border-radius: 8px; }
.lg-open {
  margin-left: auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #14161c;
  font-weight: 700;
  font-size: 0.85rem;
  text-decoration: none;
  white-space: nowrap;
}

.lg-tabs {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 16px 10px;
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
}
.lg-tabs::-webkit-scrollbar { display: none; }
.lg-tabs a {
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.lg-tabs a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }

main {
  max-width: 820px;
  margin: 0 auto;
  padding: 28px 16px 64px;
}
h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  line-height: 1.15;
  margin: 0 0 8px;
}
.lg-updated { color: var(--text3); font-size: 0.88rem; margin: 0 0 24px; }
.lg-intro {
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  margin-bottom: 28px;
}
.lg-intro p { margin: 0; }
.lg-intro p + p { margin-top: 8px; }

h2 {
  font-size: 1.2rem;
  margin: 36px 0 10px;
  padding-top: 8px;
  scroll-margin-top: 110px;
}
h3 { font-size: 1rem; margin: 22px 0 6px; }
p, ul, ol { margin: 0 0 12px; color: var(--text2); }
li { margin-bottom: 6px; }
strong { color: var(--text); }

.lg-toc {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  margin-bottom: 8px;
}
.lg-toc p { margin: 0 0 6px; font-weight: 700; color: var(--text); font-size: 0.9rem; }
.lg-toc ol { margin: 0; padding-left: 20px; font-size: 0.92rem; }
.lg-toc li { margin-bottom: 2px; }

.lg-table-wrap { overflow-x: auto; margin: 0 0 14px; border: 1px solid var(--border); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 520px; }
th, td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
th { color: var(--text); background: var(--surface); font-weight: 700; }
td { color: var(--text2); }
tr:last-child td { border-bottom: none; }

.lg-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0 0 16px; }
.lg-card {
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--surface);
}
.lg-card h3 { margin: 0 0 4px; }
.lg-card p { margin: 0; font-size: 0.92rem; }

details {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  padding: 12px 16px;
  margin-bottom: 8px;
}
summary { cursor: pointer; font-weight: 600; color: var(--text); }
details[open] summary { margin-bottom: 8px; }
details p:last-child, details ol:last-child, details ul:last-child { margin-bottom: 0; }

footer {
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: 0.85rem;
}
footer .lg-foot {
  max-width: 820px;
  margin: 0 auto;
  padding: 20px 16px 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
footer a { color: var(--text2); }
