/* legal.css: Terms, Privacy, Refunds and Contact pages, plus the shared footer business line.
   Loaded after the site stylesheets, so it reuses --serif, --sans, --ink, --olive, --line, --cream and --paper. */

/* footer: legal links and the trade name + address line (also used on the homepage) */
.site-footer .footer-bottom { flex-wrap: wrap; gap: 8px 32px; font-size: 11px; line-height: 1.6; }
.site-footer .footer-biz { max-width: 100%; }
.footer-links a[aria-current="page"] { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) { .site-footer .footer-bottom { font-size: 10px; } }
.faq-list details p a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }   /* homepage FAQ links */

/* page shell */
.lg { --lg-text: #4a473f; padding: clamp(40px, 6vw, 88px) 6.2% clamp(64px, 8vw, 112px); background: var(--cream); }
.lg, .lg * { hyphens: none; -webkit-hyphens: none; }
.lg-hero { max-width: 1080px; margin: 0 auto clamp(32px, 4vw, 52px); }
.lg-kicker { margin: 0 0 14px; font-size: 12px; letter-spacing: 2.4px; text-transform: uppercase; color: var(--olive); }
.lg-hero h1 { margin: 0; font: 500 clamp(42px, 6vw, 72px)/1.04 var(--serif); letter-spacing: -1px; color: var(--ink); }
.lg-hero h1 em { color: var(--olive); }
.lg-lead { max-width: 640px; margin: 18px 0 0; font-size: 17px; line-height: 1.7; color: var(--muted); }
.lg-meta { margin: 16px 0 0; font-size: 13px; color: #8a8478; }

/* links between the four pages */
.lg-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 0 0; padding: 0; list-style: none; }
.lg-tabs a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.lg-tabs a:hover { border-color: var(--olive); }
.lg-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fffdf7; }

/* document with a contents list (sticky beside the text on wide screens) */
.lg-layout { display: grid; grid-template-columns: 230px minmax(0, 720px); gap: clamp(40px, 6vw, 88px); max-width: 1080px; margin: 0 auto; align-items: start; }
.lg-toc { position: sticky; top: 24px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.lg-toc h2 { margin: 0 0 10px; font: 600 12px var(--sans); letter-spacing: 1.6px; text-transform: uppercase; color: var(--muted); }
.lg-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.lg-toc a { display: block; padding: 5px 0; font-size: 14px; line-height: 1.4; color: var(--ink); text-decoration: none; }
.lg-toc a:hover { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }

.lg-doc { min-width: 0; }
.lg-doc section { padding: 0 0 28px; margin: 0 0 28px; border-bottom: 1px solid var(--line); scroll-margin-top: 24px; }
.lg-doc section:last-child { border-bottom: 0; margin-bottom: 0; }
.lg-doc h2 { margin: 0 0 14px; font: 500 clamp(28px, 3vw, 34px)/1.15 var(--serif); color: var(--ink); }
.lg-doc h3 { margin: 22px 0 8px; font: 600 16px/1.4 var(--sans); color: var(--ink); }
.lg-doc p, .lg-doc li, .lg-doc dd { font-size: 16px; line-height: 1.75; color: var(--lg-text); text-align: justify; overflow-wrap: normal; word-break: normal; }
.lg-doc p + p { margin-top: 12px; }
.lg-doc ul, .lg-doc ol { margin: 12px 0 0; padding-left: 22px; display: grid; gap: 8px; }
.lg-doc li::marker { color: var(--olive); }
.lg-doc b, .lg-doc strong { color: var(--ink); font-weight: 600; }
.lg-doc a, .lg-box a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }
.lg-doc a:hover { color: var(--ink); }

/* the order terms, as shown under "Before you pay" */
.lg-terms { list-style: none; padding: 0 !important; counter-reset: term; }
.lg-terms li { position: relative; padding: 16px 18px 16px 52px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); counter-increment: term; }
.lg-terms li::before { content: counter(term); position: absolute; left: 16px; top: 16px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #e7ebdf; font: 600 12px/1 var(--sans); color: var(--olive); }

/* highlighted summary and business details */
.lg-box { margin: 16px 0 0; padding: 18px 20px; border-radius: 12px; background: var(--sage); }
.lg-box p { margin: 0; }
.lg-biz { margin: 16px 0 0; padding: 0; display: grid; gap: 0; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); overflow: hidden; }
.lg-biz div { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 4px 20px; padding: 14px 18px; border-top: 1px solid var(--line); }
.lg-biz div:first-child { border-top: 0; }
.lg-biz dt { font-size: 13px; font-weight: 600; letter-spacing: .3px; color: var(--muted); }
.lg-biz dd { margin: 0; text-align: left !important; color: var(--ink) !important; }

/* contact page */
.lg-contact { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(24px, 4vw, 48px); max-width: 1080px; margin: 0 auto; align-items: start; }
.lg-cards { display: grid; gap: 14px; }
.lg-card { padding: 22px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--paper); }
.lg-card h2 { margin: 0 0 6px; font: 500 26px/1.2 var(--serif); color: var(--ink); }
.lg-card p { margin: 0; font-size: 15px; line-height: 1.7; color: var(--lg-text); }
.lg-card .lg-big { margin-top: 4px; font-size: 19px; font-weight: 500; color: var(--ink); }
.lg-card .lg-big a { color: inherit; text-decoration: none; }
.lg-card .lg-big a:hover { text-decoration: underline; text-underline-offset: 3px; }
.lg-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.lg-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 22px; border-radius: 2px; border: 1px solid var(--ink); background: var(--ink); color: #fffdf7; font: 500 14px var(--sans); text-decoration: none; transition: background .2s, color .2s; }
.lg-btn:hover { background: #4a473f; }
.lg-btn-line { background: transparent; color: var(--ink); }
.lg-btn-line:hover { background: var(--ink); color: #fffdf7; }
.lg-btn svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.lg-side { padding: 24px; border-radius: 14px; background: var(--sage); }
.lg-side h2 { margin: 0 0 10px; font: 500 26px/1.2 var(--serif); color: var(--ink); }
.lg-side p, .lg-side li { font-size: 15px; line-height: 1.7; color: var(--lg-text); }
.lg-side ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.lg-side a { color: var(--olive); text-decoration: underline; text-underline-offset: 3px; }

/* keyboard focus */
.lg a:focus-visible, .site-footer a:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 2px; }

@media (max-width: 960px) {
  .lg-layout, .lg-contact { grid-template-columns: minmax(0, 1fr); }
  .lg-toc { position: static; }
  .lg-toc ol { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); column-gap: 20px; }
}
@media (max-width: 560px) {
  .lg { padding-inline: 20px; }
  .lg-lead { font-size: 16px; }
  .lg-doc p, .lg-doc li, .lg-doc dd { font-size: 15.5px; }
  .lg-terms li { padding: 14px 14px 14px 46px; }
  .lg-terms li::before { left: 12px; top: 15px; }
  .lg-biz div { grid-template-columns: minmax(0, 1fr); }
  .lg-card { padding: 20px; }
  .lg-btn { width: 100%; }
}
@media print {
  .site-header nav, .lg-tabs, .lg-toc, .site-footer .footer-pay, .skip-link { display: none !important; }
  .lg-layout { grid-template-columns: minmax(0, 1fr); }
  .lg { background: #fff; }
}
