@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400;1,500&family=DM+Sans:ital,opsz,wght@0,9..40,300..700;1,9..40,400&display=swap');

/* Aesthetic Influence legal pages, in the pricing page's identity. Static
   HTML generated by scripts/build-legal-hub.mjs; no script runs here.
   Light only, like the rest of the public brand. */
:root {
  --ground: #EFE7DA;
  --paper: #FAF6EF;
  --ink: #1E1710;
  --text: #55483B;
  --muted: #6E6255;
  --rule: rgba(30, 23, 16, .1);
  --rule-strong: rgba(30, 23, 16, .2);
  --gold: #8E6529;
  --gold-text: #795316;
  --gold-light: #D9B26F;
  --tint: rgba(176, 131, 67, .1);
  --shadow: 0 1px 2px rgba(30, 23, 16, .04), 0 12px 32px rgba(30, 23, 16, .06);
  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --sans: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--ground); }
body { margin: 0; background: var(--ground); color: var(--text); font: 300 16px/1.7 var(--sans); }
a { color: var(--gold-text); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: #B08343; color: #FBF7F0; }

.skip { position: fixed; left: 16px; top: -60px; z-index: 10; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #FBF7F0; text-decoration: none; font-weight: 500; }
.skip:focus { top: 16px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 24px; }
.wrap--doc { max-width: 860px; }

/* Wordmark */
.wordmark { display: inline-flex; flex-direction: column; gap: 3px; text-decoration: none; color: var(--ink); line-height: 1; }
.wordmark-name { font: 400 24px/1 var(--serif); letter-spacing: -.005em; }
.wordmark-name em { font-style: italic; color: var(--gold); }
.wordmark-sub { font: 600 9px/1 var(--sans); letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

/* Masthead */
.mast { border-bottom: 1px solid var(--rule); }
.mast .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 82px; }

/* Pills and buttons */
.pill-label { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 8px 16px; border: 1px solid rgba(176, 131, 67, .35); border-radius: 999px; background: var(--tint); font: 600 10.5px/1.2 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--gold-text); }
.pill-label::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--rule-strong); background: transparent; color: var(--ink); font: 600 11px/1 var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; transition: background-color 160ms ease, border-color 160ms ease, transform 160ms ease; }
.btn:hover { border-color: var(--gold); }
.btn:active { transform: translateY(1px); }
.btn--gold { background: var(--gold); border-color: var(--gold); color: #FBF7F0; box-shadow: 0 10px 24px rgba(142, 101, 41, .25); }
.btn--gold:hover { background: #7A5622; border-color: #7A5622; }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 10.5px; }

/* Display type */
h1 { margin: 0; font: 400 clamp(46px, 7vw, 76px)/1.02 var(--serif); letter-spacing: -.01em; color: var(--ink); text-wrap: balance; }
h1 em { font-style: italic; color: var(--gold); }
.lede { margin: 22px 0 0; max-width: 58ch; font-size: 17px; color: var(--text); }

/* Hub */
.hub-head { padding: 72px 0 36px; }
.group { padding: 34px 0 6px; }
.group-title { margin: 0 0 6px; font: 400 clamp(32px, 4.4vw, 42px)/1.1 var(--serif); color: var(--ink); }
.group-title em { font-style: italic; color: var(--gold); }
.group > p { margin: 0 0 20px; font-size: 15px; color: var(--muted); max-width: 62ch; }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.doc-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 24px; padding: 22px 26px; min-height: 76px; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); color: inherit; text-decoration: none; transition: transform 220ms cubic-bezier(.32, .72, 0, 1), box-shadow 220ms ease; }
.doc-row:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(30, 23, 16, .05), 0 18px 40px rgba(30, 23, 16, .09); }
.doc-title { font: 400 25px/1.2 var(--serif); color: var(--ink); }
.doc-sum { grid-column: 1; font-size: 14.5px; line-height: 1.55; color: var(--muted); }
.doc-meta { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 12px; font: 600 10px/1.3 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); white-space: nowrap; }
.doc-meta svg { flex: none; color: var(--gold); }

/* Document */
.doc-head { padding: 56px 0 32px; }
.doc-head h1 { font-size: clamp(40px, 6vw, 62px); }
.subtitle { margin: 16px 0 0; font: italic 400 21px/1.35 var(--serif); color: var(--gold); }
.meta { margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13.5px; color: var(--muted); }
.actions { margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }

.paper { margin: 0; padding: 48px 56px 40px; border-radius: 14px; background: var(--paper); box-shadow: var(--shadow); }
.body p { margin: 0 0 15px; max-width: 70ch; overflow-wrap: anywhere; }
.body p.i1 { padding-left: 16px; }
.body p.i2 { padding-left: 26px; }
.body p.i3 { padding-left: 44px; }
.body p.center { text-align: center; }
.body h2 { margin: 40px 0 14px; font: 400 29px/1.2 var(--serif); color: var(--ink); scroll-margin-top: 16px; text-wrap: balance; }
.body h2:first-child { margin-top: 0; }
.body h2 .num { font-style: italic; color: var(--gold); }
.body h3 { margin: 26px 0 8px; font-size: 16px; font-weight: 600; color: var(--ink); scroll-margin-top: 16px; }
.body h2.caps, .body h3.caps { margin: 36px 0 14px; font: 600 11px/1.4 var(--sans); letter-spacing: .2em; color: var(--gold-text); }
.body h2.caps:first-child { margin-top: 0; }
.body strong, .body b { color: var(--ink); font-weight: 600; }
.body ul, .body ol { margin: 0 0 15px; padding-left: 24px; max-width: 68ch; }
.body li { margin: 0 0 6px; }
.body p a[href^="#section-"] { text-decoration: none; color: var(--text); }
.body p a[href^="#section-"]:hover { color: var(--gold-text); text-decoration: underline; }
.body .table-scroll { overflow-x: auto; margin: 6px 0 18px; border: 1px solid var(--rule); border-radius: 12px; background: #FFFDF9; }
.body table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 14.5px; line-height: 1.55; }
.body th, .body td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--rule); }
.body tbody tr:last-child > * { border-bottom: 0; }
.body th { color: var(--ink); font-weight: 600; }
.body thead th { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-text); font-weight: 600; }

/* Footer band, as on the pricing page */
.site-foot { background: var(--ink); color: rgba(251, 247, 240, .72); text-align: center; padding: 56px 0 48px; font-size: 14px; }
.site-foot .wordmark { align-items: center; color: #FBF7F0; }
.site-foot .wordmark-name em { color: var(--gold-light); }
.site-foot .wordmark-sub { color: rgba(251, 247, 240, .62); }
.site-foot hr { width: 48px; margin: 22px auto; border: 0; border-top: 1px solid rgba(217, 178, 111, .6); }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: var(--gold-light); }
.site-foot .fine { margin-top: 14px; font-size: 13px; color: rgba(251, 247, 240, .55); }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .mast .wrap { min-height: 70px; }
  .wordmark-name { font-size: 21px; }
  .hub-head { padding: 44px 0 20px; }
  .lede { font-size: 16px; }
  .doc-row { grid-template-columns: 1fr; padding: 18px; }
  .doc-title { font-size: 23px; }
  .doc-meta { grid-column: 1; grid-row: auto; margin-top: 4px; white-space: normal; }
  .doc-meta svg { display: none; }
  .doc-head { padding: 36px 0 22px; }
  .paper { margin: 0 -16px; padding: 28px 18px 24px; border-radius: 0; box-shadow: none; border-top: 1px solid var(--rule); }
  .body h2 { font-size: 25px; }
  .body p.i2 { padding-left: 14px; }
  .body p.i3 { padding-left: 24px; }
  .body .table-scroll--stack { overflow: visible; }
  .body table.stack { min-width: 0; }
  .body table.stack thead { display: none; }
  .body table.stack tr { display: block; padding: 14px 16px; border-bottom: 1px solid var(--rule); }
  .body table.stack tbody tr:last-child { border-bottom: 0; }
  .body table.stack th, .body table.stack td { display: block; padding: 2px 0; border: 0; }
  .body table.stack th[scope="row"] { font: 400 21px/1.3 var(--serif); padding-bottom: 6px; }
  .body table.stack td::before { content: attr(data-label) ": "; font-weight: 600; color: var(--muted); }
  .actions .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

@media print {
  :root { --ground: #fff; --paper: #fff; --ink: #000; --text: #111; --muted: #444; --rule: #ccc; --gold: #000; --gold-text: #000; }
  .mast, .actions, .skip, .site-foot { display: none !important; }
  .paper { box-shadow: none; padding: 0; margin: 0; }
  body { font-size: 11pt; line-height: 1.5; font-weight: 400; }
  .body h2 { break-after: avoid; }
  .body p, .body li { orphans: 3; widows: 3; }
  a { text-decoration: none; }
}

.doc-note { margin: 32px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: 13.5px; color: var(--muted); }
.paper .actions { margin-top: 22px; }

/* Room above the footer band, and a touch more weight for long reading. */
main.wrap { padding-bottom: 88px; }
.paper.body { font-weight: 350; }
@media (max-width: 720px) { main.wrap { padding-bottom: 56px; } }
