/* TribeLedger legal pages (Privacy Policy, Terms & Conditions, About Us).
   Same visual language as the landing page: self-hosted Barlow, brand green,
   shared header/footer chrome — tuned for readable long-form text. No
   JavaScript: these pages must render fully for crawlers and store review. */

@font-face {
  font-family: Barlow;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Barlow-Regular.ttf") format("truetype");
}
@font-face {
  font-family: Barlow;
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/Barlow-SemiBold.ttf") format("truetype");
}

:root {
  --g: #015A40;
  --accent-bg: #d9ede4;
  --ink: #151917;
  --muted: #68736e;
  --bg: #e9eeea;
  --line: #dfe5e1;
  --login-bg: #f8faf7;
  --login-border: #b9c2bd;
}
@media (prefers-color-scheme: dark) {
  :root {
    --g: #4fbf95;
    --accent-bg: #0d2a20;
    --ink: #e8eeea;
    --muted: #9aa8a1;
    --bg: #0e1512;
    --line: #24302a;
    --login-bg: #121a16;
    --login-border: #3a4a42;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Barlow, system-ui, sans-serif;
  /* Safety net so no breakpoint can scroll sideways (same as the landing). */
  overflow-x: hidden;
}

/* Header + footer chrome, same as the landing page. */
.shell { width: min(1240px, calc(100% - 40px)); margin: auto; }
.header {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Horizontal inset comes from .shell, so the brand lines up with the
     document text at every breakpoint. */
  padding: 14px 0;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.logo { width: 28px; height: auto; display: block; }
.nav { display: flex; align-items: center; gap: 10px; }
.login {
  border: 1px solid var(--login-border);
  border-radius: 999px;
  padding: 10px 21px;
  background: var(--login-bg);
  font-weight: 600;
}
.signup {
  border-radius: 999px;
  padding: 10px 21px;
  background: var(--g);
  color: #fff;
  font-weight: 600;
}
.footer { padding: 55px 0 30px; border-top: 1px solid var(--line); margin-top: 96px; }
.foot-top, .foot-bottom { display: flex; justify-content: space-between; }
.foot-top p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }
.foot-links { display: flex; gap: 24px; flex-wrap: wrap; }
.foot-links a { color: var(--muted); }
.foot-links a:hover, .foot-links a:focus-visible { color: var(--g); }
.foot-bottom {
  border-top: 1px solid var(--line);
  margin-top: 35px;
  padding-top: 18px;
  color: var(--muted);
  font-size: 11px;
}
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; border-radius: 2px; }

/* Long-form document: one comfortable reading column. */
.legal {
  width: min(720px, calc(100% - 40px));
  margin: 40px auto 0;
  padding-bottom: 24px;
}
.legal h1 {
  font-size: clamp(34px, 6vw, 44px);
  line-height: 1.1;
  letter-spacing: -.03em;
  font-weight: 600;
  margin: 0 0 10px;
}
.legal .updated { color: var(--muted); font-size: 14px; margin: 0 0 26px; }
.legal h2 {
  color: var(--g);
  font-size: 23px;
  line-height: 1.25;
  font-weight: 600;
  margin: 44px 0 12px;
}
.legal h3 {
  font-size: 18px;
  line-height: 1.3;
  font-weight: 600;
  margin: 26px 0 8px;
}
.legal p {
  font-size: 16.5px;
  line-height: 1.65;
  margin: 0 0 12px;
  overflow-wrap: break-word;
}
.legal ul { margin: 0 0 14px; padding-left: 24px; }
.legal li {
  font-size: 16.5px;
  line-height: 1.6;
  margin-bottom: 6px;
  overflow-wrap: break-word;
}
.legal .callout {
  background: var(--accent-bg);
  color: var(--g);
  font-weight: 600;
  text-align: center;
  border-radius: 16px;
  padding: 18px 20px;
  margin: 18px 0;
}
.legal a[href^="mailto:"] {
  color: var(--g);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal .updated + .callout { margin-top: 0; }

/* Account deletion page (site/delete-account). Same visual language; adds
   only the form controls the legal pages never needed. */
.da .da-lede { font-size: 18px; }
.da form { max-width: 460px; margin: 26px 0 10px; }
.da label {
  display: block;
  font-weight: 600;
  margin: 0 0 8px;
}
.da input[type="email"] {
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  color: inherit;
  background: var(--login-bg);
  border: 1px solid var(--login-border);
  border-radius: 10px;
}
.da input[type="email"]:focus-visible {
  outline: 2px solid var(--g);
  outline-offset: 1px;
}
.da-button {
  display: inline-block;
  margin-top: 16px;
  padding: 12px 22px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--g);
  border: 0;
  border-radius: 12px;
  cursor: pointer;
}
.da-button:disabled { opacity: 0.5; cursor: not-allowed; }
.da-button:focus-visible { outline: 3px solid var(--g); outline-offset: 3px; }
.da .da-danger { background: #b3261e; }
.da .da-warning {
  color: #b3261e;
  font-weight: 600;
  background: var(--accent-bg);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
}
.da-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  margin: 18px 0 0;
  max-width: 460px;
  cursor: pointer;
}
.da-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--g); }
.da-check input:focus-visible { outline: 2px solid var(--g); outline-offset: 2px; }
.da-status {
  font-weight: 600;
  background: var(--accent-bg);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 18px 0;
  max-width: 560px;
}
.da-whathappens { margin-top: 48px; }

@media (max-width: 900px) {
  .shell { width: calc(100% - 40px); }
  .legal { width: calc(100% - 40px); }
  .foot-top, .foot-bottom { flex-direction: column; gap: 24px; }
}
@media (max-width: 520px) {
  .shell { width: calc(100% - 32px); }
  .legal { width: calc(100% - 32px); margin-top: 28px; }
  .header { min-height: 72px; padding: 12px 0; }
  .brand { font-size: 18px; }
  .signup { display: none; }
  .login { padding: 8px 16px; }
  .legal h1 { font-size: 32px; }
  .legal h2 { font-size: 21px; }
  .legal p, .legal li { font-size: 16px; }
  .da-button { width: 100%; }
  .footer { margin-top: 70px; }
}
