/* Legal pages (/terminos/): long text inside a paper card. */

.legal-meta { margin: 0 0 22px; color: var(--muted); font-size: .95rem; }
.legal-meta b { color: var(--text); }

.legal { line-height: 1.55; }
.legal p { margin: 0 0 10px; }
.legal section + section { margin-top: 22px; }
.legal h2 { font-family: var(--slab); font-weight: 400; font-size: 1.25rem; line-height: 1.2; margin: 0 0 10px; scroll-margin-top: 16px; }
.legal ul { margin: 0 0 10px; padding-left: 22px; }
.legal li { margin: 0 0 6px; }
.legal a { font-weight: 700; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.legal :target { background: var(--accent); border-radius: 6px; box-shadow: 0 0 0 4px var(--accent); }

/* The plans table (6.1): a grid on wide screens, one card per plan on phones. */
.tbl { overflow-x: auto; margin: 4px 0 14px; }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.tbl th, .tbl td { border: 2px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.tbl thead th { background: var(--accent); color: var(--accentText); }
.tbl tbody th { font-weight: 700; }

@media (max-width: 480px) {
  .tbl thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tbl table, .tbl tbody, .tbl tr, .tbl th, .tbl td { display: block; }
  .tbl tr { border: 2px solid var(--line); border-radius: 10px; margin: 0 0 10px; overflow: hidden; }
  .tbl th, .tbl td { border: 0; padding: 6px 10px; }
  .tbl tbody th { background: var(--accent); color: var(--accentText); }
  .tbl td::before { content: attr(data-label) ": "; font-weight: 700; }
}
