/* Shared styling for the standalone Conmigo policy pages
   (privacy.html, terms.html, cookies.html, disclaimer.html, delete-account.html).
   These are plain HTML pages served alongside the Flutter web app — the app
   renders to a canvas, so policy text cannot live inside it. */

:root { color-scheme: light dark; }

body {
  margin: 0 auto;
  padding: 28px 20px 72px;
  max-width: 820px;
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #16181d;
  background: #fff;
}

header.site {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  border-bottom: 1px solid #e4e7ec;
  margin-bottom: 8px;
}

header.site .brand {
  font-size: 20px;
  font-weight: 700;
  color: #4C7DF6;
  text-decoration: none;
}

header.site .brand span { color: inherit; }

nav.policies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 28px;
  font-size: 15px;
}

nav.policies a { color: #5b6270; text-decoration: none; }
nav.policies a:hover { color: #4C7DF6; }
nav.policies a[aria-current="page"] { color: #4C7DF6; font-weight: 600; }

h1 { font-size: 27px; line-height: 1.25; margin: 0 0 6px; }
.sub { color: #5b6270; margin: 0 0 26px; }

/* The Termageddon embed injects its own markup into .policy_embed_div.
   Give it sane typography and stop wide tables blowing out the page. */
.policy_embed_div {
  width: 100% !important;
  height: auto !important;
}
.policy_embed_div h1 { font-size: 24px; margin-top: 32px; }
.policy_embed_div h2 { font-size: 20px; margin-top: 28px; }
.policy_embed_div h3 { font-size: 17px; margin-top: 22px; }
.policy_embed_div a { color: #4C7DF6; word-break: break-word; }
.policy_embed_div table { display: block; overflow-x: auto; max-width: 100%; }
.policy_embed_div img { max-width: 100%; height: auto; }

footer.site {
  margin-top: 52px;
  padding-top: 18px;
  border-top: 1px solid #e4e7ec;
  color: #7a808c;
  font-size: 14px;
}
footer.site a { color: #7a808c; }

@media (prefers-color-scheme: dark) {
  body { color: #e8eaee; background: #1b1d21; }
  .sub { color: #9aa1ad; }
  header.site, footer.site { border-color: #33363d; }
  footer.site { color: #868d99; }
  nav.policies a { color: #9aa1ad; }
}

/* Hand-written page content (delete-account.html) */
h2 { font-size: 19px; margin: 34px 0 10px; }
/* Sub-headings within a section. First used by privacy.html, which is long enough
   to need a level below h2 — without this it falls back to the browser default and
   sits heavier than the h2 above it. */
h3 { font-size: 16px; margin: 22px 0 8px; color: #3a3f4a; }
ol, ul { padding-left: 22px; }
li { margin: 6px 0; }
a { color: #4C7DF6; }

.note {
  background: #f5f7fa;
  border-radius: 10px;
  padding: 14px 16px;
  margin: 20px 0;
}

table { border-collapse: collapse; width: 100%; margin-top: 12px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid #e4e7ec; vertical-align: top; }
th { font-weight: 600; }

@media (prefers-color-scheme: dark) {
  .note { background: #24272c; }
  th, td { border-bottom-color: #33363d; }
  h3 { color: #c3c8d1; }
  /* The footer policy list keeps a light divider in dark mode without this. */
  nav.allpolicies { border-bottom-color: #33363d; }
  nav.allpolicies a { color: #9aa1ad; }
}

/* Full policy list in the footer, so any page can reach every other one —
   including from a search result or a link someone was sent directly. */
nav.allpolicies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  justify-content: center;
  padding: 0 0 14px;
  margin: 0 0 14px;
  border-bottom: 1px solid #e4e7ec;
}
nav.allpolicies a { color: #5b6270; text-decoration: none; font-size: 14px; }
nav.allpolicies a:hover { color: #4C7DF6; }
