/* The legal pages: privacy.html and terms.html.

   Added 2026-09-11 on the Aita-App session's brief. Google will not publish
   the Aita sign in app until ai-team.agency links a privacy policy, and a
   service that holds client data owes one anyway.

   A reading page, not a marketing one. No field, no glass, no motion: the
   tokens, the faces and the footer are the site's, and everything else is
   there to make long text easy to read and easy to find a clause in. Every
   colour is a token, so both themes come for free.

   mark.lg-todo is the draft marker. deploy-site.mjs refuses to publish a
   page that still carries one. */

.lg-page {
  --lg-measure: 68ch;
  --lg-side: clamp(18px, 5vw, 64px);
  min-height: 100vh;
}

/* == THE BAR ============================================================ */

.lg-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(18px, 3vh, 30px) var(--lg-side) 0;
}

.lg-brand {
  color: var(--ink);
  text-decoration: none;
}

.lg-bar__end {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.4rem);
}

.lg-nowrap { white-space: nowrap; }

.lg-bar__link {
  color: var(--ink-soft);
  font-size: var(--t-small);
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.lg-bar__link:hover { color: var(--ink); }
.lg-bar__link[aria-current="page"] { color: var(--ink); }

.lg-theme {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink);
  cursor: pointer;
  transition: color 200ms var(--ease);
}

.lg-theme:hover { color: var(--brass); }
.lg-theme svg { display: block; width: 18px; height: 18px; }
.lg-theme .theme-toggle__moon { display: none; }
:root:not([data-theme="dark"]) .lg-theme .theme-toggle__sun { display: none; }
:root:not([data-theme="dark"]) .lg-theme .theme-toggle__moon { display: block; }

/* == THE DOCUMENT ======================================================= */

.lg {
  max-width: 1180px;
  margin-inline: auto;
  padding: clamp(3rem, 9vh, 6.5rem) var(--lg-side) clamp(4rem, 10vh, 7rem);
}

.lg-head {
  max-width: var(--lg-measure);
  margin-bottom: clamp(2.5rem, 6vh, 4rem);
}

.lg-eyebrow {
  display: block;
  margin-bottom: 1.1rem;
  color: var(--ink-soft);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lg-title {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: var(--display-weight);
  letter-spacing: -0.02em;
  line-height: 1.04;
}

.lg-meta {
  margin: 1.4rem 0 0;
  color: var(--clay);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
}

.lg-intro {
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: var(--t-lead);
  line-height: 1.55;
}

/* Contents on the left, the text on the right, from a width that can hold
   both at a readable measure. Below it the contents sit above the text. */
.lg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vh, 3rem);
}

@media (min-width: 1040px) {
  .lg-layout {
    grid-template-columns: 230px minmax(0, var(--lg-measure));
    gap: clamp(3rem, 6vw, 6rem);
    align-items: start;
  }

  .lg-toc {
    position: sticky;
    top: 2rem;
    max-height: calc(100vh - 4rem);
    overflow-y: auto;
  }
}

.lg-toc__label {
  display: block;
  margin-bottom: 0.9rem;
  color: var(--clay);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lg-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: toc;
}

.lg-toc li {
  counter-increment: toc;
}

.lg-toc a {
  display: grid;
  grid-template-columns: 2.1em minmax(0, 1fr);
  padding-block: 0.32rem;
  color: var(--ink-soft);
  font-size: var(--t-small);
  line-height: 1.35;
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.lg-toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: var(--clay);
  font-family: var(--mono);
  font-size: 0.8em;
  line-height: 1.7;
}

.lg-toc a:hover { color: var(--ink); }

@media (max-width: 1039px) {
  .lg-toc ol {
    columns: 2 16rem;
    column-gap: 2rem;
  }

  .lg-toc li { break-inside: avoid; }
}

/* The short version: the one card on the page, on bone like the site's. */
.lg-short {
  margin-bottom: clamp(2.5rem, 6vh, 3.5rem);
  padding: clamp(1.4rem, 3vw, 2.1rem);
  border: 1px solid var(--hairline-paper);
  border-radius: 22px;
  background: var(--bone);
}

.lg-short h2 {
  margin: 0 0 0.9rem;
  color: var(--ink);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lg-short ul {
  margin: 0;
}

.lg-body section {
  scroll-margin-top: 2rem;
  padding-top: clamp(2rem, 5vh, 2.8rem);
  margin-top: clamp(2rem, 5vh, 2.8rem);
  border-top: 1px solid var(--hairline-paper);
}

.lg-body section:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* section > h2, not .lg-body h2: the short version's label sits inside
   .lg-body too, and the broader rule, later in the file, won it. */
.lg-body section > h2 {
  display: grid;
  grid-template-columns: 2.4em minmax(0, 1fr);
  align-items: baseline;
  margin: 0 0 1rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-h4);
  font-weight: 400;
  letter-spacing: -0.015em;
  line-height: 1.2;
}

.lg-num {
  color: var(--brass);
  font-family: var(--mono);
  font-size: 0.5em;
  letter-spacing: 0.04em;
}

.lg-body h3 {
  margin: 1.8rem 0 0.6rem;
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 500;
  letter-spacing: -0.005em;
}

.lg-body p,
.lg-body li,
.lg-short li {
  color: var(--ink-soft);
  font-size: var(--t-body);
  line-height: 1.7;
}

.lg-body p { margin: 0 0 1rem; }

.lg-body ul,
.lg-short ul {
  margin: 0 0 1rem;
  padding-left: 1.2em;
}

.lg-body li + li,
.lg-short li + li { margin-top: 0.45rem; }

.lg-body li::marker,
.lg-short li::marker { color: var(--brass); }

.lg-body strong { color: var(--ink); font-weight: 500; }

.lg-body a,
.lg-short a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--brass-hair);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  overflow-wrap: anywhere;
  transition: color 300ms var(--ease), text-decoration-color 300ms var(--ease);
}

.lg-body a:hover,
.lg-short a:hover {
  color: var(--brass);
  text-decoration-color: var(--brass);
}

/* The statements Google asks for, set apart so a reviewer finds them. */
.lg-quote {
  margin: 1.2rem 0;
  padding: 0.2rem 0 0.2rem 1.2rem;
  border-left: 2px solid var(--brass);
}

.lg-quote p { color: var(--ink); }
.lg-quote p:last-child { margin-bottom: 0; }

/* The providers: a table on a wide screen, a stack of rows on a phone. */
.lg-rows {
  margin: 1.2rem 0 1.4rem;
  border-top: 1px solid var(--hairline-paper);
}

.lg-rows dl { margin: 0; }

.lg-row {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 0.3rem 1.2rem;
  padding-block: 0.8rem;
  border-bottom: 1px solid var(--hairline-paper);
}

.lg-row > * {
  margin: 0;
  font-size: var(--t-small);
  line-height: 1.5;
}

.lg-row dt { color: var(--ink); font-weight: 500; }
.lg-row dd { color: var(--ink-soft); }
.lg-row dd.lg-where { color: var(--clay); }

.lg-row--head > * {
  color: var(--clay);
  font-family: var(--mono);
  font-size: var(--t-micro);
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

@media (max-width: 700px) {
  .lg-row { grid-template-columns: minmax(0, 1fr); }
  .lg-row--head { display: none; }
}

.lg-contact {
  margin: 1rem 0 0;
  font-style: normal;
}

.lg-contact p { margin: 0 0 0.3rem; }

/* The draft marker. Loud on purpose; it must never reach production. */
mark.lg-todo {
  padding: 0 0.3em;
  border-radius: 4px;
  outline: 1px dashed var(--brass);
  background: rgba(184, 115, 51, 0.22);
  color: var(--ink);
}

/* == THE FOOTER ========================================================= */

/* The homepage's footer, same line and same mailbox, with the two pages it
   links to. Its rules live inline in index.html; these match them. */
.site-footer {
  padding-block: clamp(0.9rem, 1.7vh, 1.3rem);
  background: transparent;
}

.lg-footer {
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: var(--lg-side);
}

.ft-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.4rem 1.5rem;
}

.ft-legal,
.ft-mail,
.ft-link {
  margin: 0;
  color: var(--clay);
  font-family: var(--mono);
  font-size: var(--t-micro);
  letter-spacing: 0.04em;
}

.ft-mail,
.ft-link {
  text-decoration: none;
  transition: color 300ms var(--ease);
}

.ft-mail:hover,
.ft-link:hover { color: var(--brass); }
.ft-link[aria-current="page"] { color: var(--ink-soft); }

.ft-end {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.4rem 1.5rem;
}

@media print {
  .lg-bar,
  .lg-toc,
  .site-footer { display: none; }

  .lg-layout { display: block; }
}
