/* ============================================================
   Future Self — joinfutureself.com
   Shared stylesheet for the legal & support site.
   Palette matches the app: warm paper, deep umber, terracotta.
   No JS, no external fonts — fully self-contained.
   ============================================================ */

:root {
  --bg:       #F3E9DC;
  --ink:      #3B2E25;
  --muted:    #8A7770;
  --accent:   #B4553C;
  --accent-2: #93432F;
  --card:     #FAF3E7;
  --rule:     #E2D5C2;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

::selection { background: var(--accent); color: #FFF6EC; }

/* ---------- Accessibility ---------- */

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: .5rem 1rem;
  border-radius: 0 0 .5rem 0;
  z-index: 10;
}
.skip:focus { left: 0; }

a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Links ---------- */

a { color: var(--accent); text-underline-offset: 2px; }
a:hover { color: var(--accent-2); }

/* ---------- Header / site nav ---------- */

.site-header { padding-top: 1.4rem; }

.site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: .3rem .7rem;
  font-size: .95rem;
}
.site-nav .brand {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}
.site-nav .brand:hover { color: var(--accent); }
.site-nav a:not(.brand) { color: var(--muted); text-decoration: none; }
.site-nav a:not(.brand):hover { color: var(--accent); }
.site-nav a[aria-current="page"]:not(.brand) { color: var(--accent); font-weight: 600; }
.site-nav .dot { color: var(--muted); }

/* ---------- Headings & meta ---------- */

h1, h2, h3 { font-family: var(--serif); line-height: 1.25; margin: 0; }

h1 {
  font-size: clamp(2rem, 6vw, 2.6rem);
  margin: 2.4rem 0 .5rem;
  letter-spacing: -0.01em;
}
h2 { font-size: 1.35rem; margin: 2.6rem 0 .7rem; }
h3 { font-size: 1.08rem; margin: 1.8rem 0 .4rem; }

.updated { color: var(--muted); font-size: .95rem; margin: 0 0 2rem; }
.lead { font-size: 1.15rem; line-height: 1.7; }
.note { color: var(--muted); font-size: .95rem; }

p { margin: .9rem 0; }
ul, ol { margin: .9rem 0; padding-left: 1.4rem; }
li { margin: .3rem 0; }

hr { border: none; border-top: 1px solid var(--rule); margin: 2.5rem 0; }

/* ---------- Landing cards ---------- */

.cards {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: .9rem;
}
.cards a {
  display: block;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.1rem 1.3rem;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s ease;
}
.cards a:hover { border-color: var(--accent); }
.cards .t {
  display: block;
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--accent);
}
.cards .d { display: block; color: var(--muted); font-size: .95rem; margin-top: .1rem; }

/* ---------- Table of contents ---------- */

.toc {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  margin: 0 0 2.2rem;
}
.toc h2 { font-size: 1rem; margin: 0 0 .4rem; }
.toc ol, .toc ul { margin: 0; padding-left: 1.3rem; font-size: .95rem; line-height: 1.9; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }

@media (min-width: 560px) {
  .toc ol, .toc ul { columns: 2; column-gap: 2.2rem; }
}

/* ---------- Callouts, identity block, buttons ---------- */

.glance {
  background: var(--card);
  border-left: 4px solid var(--accent);
  border-radius: .5rem;
  padding: 1rem 1.3rem;
  margin: 1.4rem 0 2rem;
}
.glance > p:first-child {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
}
.glance ul { margin: .5rem 0 .2rem; }

.identity {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 1rem;
  padding: 1.1rem 1.4rem;
  margin: 1.2rem 0;
  line-height: 1.9;
}
.identity p { margin: 0; }

.btn {
  display: inline-block;
  background: var(--accent);
  color: #FFF6EC;
  font-weight: 600;
  padding: .75rem 1.5rem;
  border-radius: 999px;
  text-decoration: none;
}
.btn:hover { background: var(--accent-2); color: #FFF6EC; }

/* Unfilled business-detail placeholders — deliberately loud so they
   are impossible to ship unnoticed. Replace before going live. */
mark.todo {
  background: #FFD97A;
  color: #5A3E00;
  border: 1px dashed #B98300;
  border-radius: .35em;
  padding: .08em .4em;
  font-weight: 600;
}

/* ---------- Tables ---------- */

.table-wrap {
  overflow-x: auto;
  margin: 1.1rem 0;
  border: 1px solid var(--rule);
  border-radius: .75rem;
  background: var(--card);
}
table { border-collapse: collapse; width: 100%; font-size: .95rem; min-width: 36rem; }
.table-wide table { min-width: 60rem; }   /* six-column data table on the Privacy page */
th, td {
  text-align: left;
  vertical-align: top;
  padding: .65rem .9rem;
  border-bottom: 1px solid var(--rule);
}
tr:last-child td { border-bottom: none; }
th { font-family: var(--serif); font-size: .95rem; }

/* ---------- Definition lists (privacy data categories) ---------- */

dl { margin: 1rem 0; }
dt { font-weight: 700; margin-top: 1rem; }
dd { margin: .15rem 0 0 0; }

/* ---------- Footer ---------- */

.site-footer {
  margin-top: 4.5rem;
  border-top: 1px solid var(--rule);
  padding: 1.6rem 0 3.5rem;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer p { margin: .3rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

/* ---------- Print ---------- */

@media print {
  body { background: #fff; color: #000; font-size: 11pt; line-height: 1.5; }
  .site-nav, .skip, .toc, .foot-links, .btn { display: none !important; }
  a { color: #000; text-decoration: none; }
  h1 { margin-top: 0; }
  .glance, .identity, .table-wrap { background: none; border-color: #000; }
  mark.todo { background: none; color: #000; border: 1.5px solid #000; }
  .updated, .note, .site-footer, .site-footer a { color: #000; }
  .site-footer { border-top-color: #000; }
  table { min-width: 0; }
}
