/* Legal / information documents — numbers from gen.js on deposit-limits (30:4),
 * terms-and-conditions (30:232), privacy-policy (30:542), cookie-policy (30:867)
 * and their mobile frames. */

/* ── hero ─────────────────────────────────────────────────────────────── */
.dhero {
  position: relative; display: flex; align-items: center;
  height: 320px; padding: 64px; background: var(--color-dark); color: var(--color-cream); overflow: hidden;
}
.dhero__left { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; width: 700px; }
.dhero__eyebrow { font-size: 13px; line-height: 17px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--color-gold); }
.dhero__title { display: flex; flex-direction: column; gap: 4px; font-family: var(--font-display); font-size: 72px; line-height: 65px; text-transform: uppercase; }
.dhero__line--brand { color: var(--color-brand); }
.dhero__rule { width: 120px; height: 2px; background: var(--color-brand); }
.dhero__mark { position: absolute; right: 64px; top: 50%; translate: 0 -50%; font-family: var(--font-display); font-size: 180px; line-height: 271px; letter-spacing: -4px; color: var(--color-dark-2); opacity: .5; }

/* ── brief ────────────────────────────────────────────────────────────── */
.brief { display: flex; padding: 48px 64px; background: var(--color-dark-2); color: var(--color-cream); }
.brief--tall { min-height: 196px; }   /* deposit-limits frame keeps a 100px spacer beside the text */
.brief__text { max-width: 800px; margin-left: 110px; font-size: 18px; line-height: 29px; }

/* ── document ─────────────────────────────────────────────────────────── */
.doc { display: flex; flex-direction: column; gap: 80px; padding: 80px 64px; background: var(--color-bg); color: var(--color-ink); }
.doc__rule { border: 0; height: 1px; margin: 0; background: var(--color-muted-2); opacity: .5; }
/* num | title on the first row, blocks under the title — one grid for both frames */
.doc__row { display: grid; grid-template-columns: 110px minmax(0, 800px); grid-template-rows: auto auto; grid-template-areas: "num title" "num content"; row-gap: 20px; align-items: start; }
.doc__num { grid-area: num; font-family: var(--font-display); font-size: 42px; line-height: 63px; color: var(--tint-ink-25); }
.doc__title { grid-area: title; font-family: var(--font-display); font-size: 32px; line-height: 48px; text-transform: uppercase; }
.doc__content { grid-area: content; display: flex; flex-direction: column; gap: 20px; }
.doc__content:empty { display: none; }
.doc__p { font-size: 16px; line-height: 26px; }
.doc__strong { font-size: 14px; line-height: 18px; font-weight: 700; }
.doc__sub { display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.doc__h4 { font-family: var(--font-display); font-size: 18px; line-height: 27px; }
.doc__p--sub { font-size: 15px; line-height: 23px; }
.doc__list { display: flex; flex-direction: column; gap: 12px; padding: 0 8px; }
.doc__list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 22.5px; }
.doc__list li::before { content: ""; position: absolute; left: 0; top: 8px; width: 6px; height: 6px; border-radius: 99px; background: var(--color-ink); }
.doc__note { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; border-left: 3px solid var(--color-dark); background: var(--color-cream); font-size: 14px; line-height: 20px; }
.doc__note-title { font-size: 13px; line-height: 17px; font-weight: 700; }
.doc__dl { display: flex; flex-direction: column; gap: 16px; padding: 0 8px; }
.doc__dl div { display: flex; flex-direction: column; gap: 4px; }
.doc__dl dt { font-family: var(--font-display); font-size: 18px; line-height: 27px; }
.doc__dl dd { font-size: 15px; line-height: 20px; }
.doc__links { display: flex; flex-direction: column; gap: 8px; }
.doc__link { font-size: 14px; line-height: 18px; font-weight: 700; color: var(--color-ink); text-decoration: underline; text-underline-offset: 2px; }
.doc__link:hover { color: var(--color-muted-ink); }
.doc__p a { font-weight: 700; }
.doc__body { display: flex; flex-direction: column; gap: 12px; }
/* privacy frame: the rule sits 24px under the row, lists have no side padding and 24px lines */
.doc--privacy .doc__num { color: var(--tint-ink-50); }
@media (min-width: 1200px) {
  .doc--privacy .doc__rule { margin-top: -56px; }
  .doc--privacy .doc__content { gap: 16px; }
  .doc--privacy .doc__list { padding: 0; }
  .doc--privacy .doc__list li { line-height: 24px; }
}

/* ── mobile (390 frame) ───────────────────────────────────────────────── */
@media (max-width: 1199px) {
  .dhero { flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; height: auto; padding: 32px 16px; }
  .brief--tall { min-height: 0; }
  .dhero__left { width: auto; }
  .dhero__eyebrow { font-size: 11px; line-height: 14px; }
  .dhero__title { font-size: 54px; line-height: 49px; }
  .dhero__rule { width: 80px; }
  .dhero__mark { position: absolute; right: -8px; top: -40px; font-size: 120px; line-height: 181px; opacity: .4; }
  .brief { padding: 24px 16px; }
  .brief__text { margin-left: 0; font-size: 15px; line-height: 23px; }
  .doc { gap: 32px; padding: 40px 16px; }
  .doc__row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "num title" "content content"; column-gap: 12px; row-gap: 16px; align-items: center; }
  .doc__num { align-self: center; }
  .doc__num { font-size: 30px; line-height: 45px; color: var(--color-muted-3); }
  .doc__content { gap: 12px; }
  .doc__title { font-size: 22px; line-height: 33px; color: var(--color-dark); }
  .doc__p { font-size: 14px; line-height: 21px; }
  .doc__p--sub { font-size: 14px; line-height: 20px; }
  .doc__sub { padding: 0 4px; }
  .doc__list { gap: 8px; padding: 0 0 0 4px; }   /* the frame lets 354px items overflow a 350px box: text is 341px wide */
  .doc__list li { padding-left: 13px; font-size: 14px; line-height: 20px; }
  .doc__list li::before { width: 5px; height: 5px; top: 7px; }
  .doc__note { padding: 12px; font-size: 13px; line-height: 18px; }
  .doc__dl { gap: 12px; padding: 0 4px; }
  .doc__dl div { gap: 2px; }
  .doc__dl dt { font-size: 16px; line-height: 24px; }
  .doc__dl dd { font-size: 13px; line-height: 17px; }
}

/* password-reset landing and 404 reuse the dark hero band */
.dhero--reset { display: flex; justify-content: center; align-items: center; height: auto; min-height: 560px; padding: 64px; }
.modal--page { width: min(100%, 560px); display: flex; flex-direction: column; gap: 24px; padding: 40px; border: 2px solid var(--color-ink); border-radius: 20px; background: var(--color-bg); color: var(--color-ink); box-shadow: var(--shadow-card); }
.modal--page .modal__done { display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 1199px) { .dhero--reset { padding: 32px 16px; } .modal--page { padding: 24px; } }
