/* Legal pages extend the shared Sendflare product-page design. */
.legal-nav .product-nav-links { gap: 34px; }
.legal-hero { border-bottom: 1px solid var(--line); overflow: hidden; }
.legal-hero-inner { display: grid; grid-template-columns: 1fr 290px; gap: 60px; align-items: center; padding-block: 65px 62px; }
.legal-hero .eyebrow { color: var(--muted); margin-bottom: 24px; }
.legal-hero h1 { font-size: clamp(48px, 5.7vw, 76px); letter-spacing: -.06em; line-height: 1.06; }
.legal-intro { font-size: 17px; line-height: 1.75; color: var(--muted); max-width: 540px; margin-top: 22px; }
.legal-date { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 28px; }
.legal-date::before { content: ''; width: 5px; height: 5px; background: #81926e; border-radius: 50%; margin-right: 3px; }
.legal-date time { color: #41483f; }
.legal-art { position: relative; width: 280px; height: 250px; display: grid; place-items: center; }
.legal-art > svg { position: absolute; width: 310px; height: 280px; color: #aa9cc1; transform: rotate(-24deg); }
.legal-art .document { position: relative; width: 133px; height: 166px; border: 1px solid #bcc5b3; background: #f6f8f1e8; padding: 27px 23px; transform: rotate(7deg); box-shadow: 12px 14px 0 #e5e9df80; }
.document > svg { width: 31px; height: 34px; color: #76619a; margin-bottom: 19px; }
.document-line { display: block; height: 1px; background: #c3cbb9; margin-top: 12px; }
.document-line:last-child { width: 62%; }
.terms-art .document { transform: rotate(-7deg); }
.terms-art > svg { color: #98aa88; transform: rotate(24deg); }
.terms-art .document > svg { color: #6f805e; }
.legal-layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 80px; padding-block: 58px 80px; align-items: start; }
.legal-sidebar { position: sticky; top: 112px; }
.legal-toc > summary { list-style: none; cursor: default; pointer-events: none; }
.legal-toc > summary::-webkit-details-marker { display: none; }
.toc-heading { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 11px; letter-spacing: .1em; line-height: 1.5; }
.toc-heading > span:last-child { font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; color: #737c6d; }
.toc-chevron { display: none; }
.toc-links { display: flex; flex-direction: column; margin-top: 21px; border-left: 1px solid var(--line); }
.toc-links a { display: grid; grid-template-columns: 22px 1fr; align-items: baseline; gap: 9px; padding: 10px 13px 10px 17px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); font-size: 13px; line-height: 1.55; transition: color .15s, background .15s; }
.toc-links a > span:first-child { font: 10px ui-monospace, SFMono-Regular, Consolas, monospace; color: #8c9487; }
.toc-links a:hover { color: var(--ink); background: #edf0e980; }
.toc-links a[aria-current=location] { color: var(--accent); border-left-color: var(--accent); background: #edeaf680; }
.toc-links a[aria-current=location] > span:first-child { color: var(--accent); }
.legal-sidebar-note { border-top: 1px solid var(--line); padding-top: 23px; margin-top: 29px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.legal-sidebar-note a { display: inline-block; color: var(--ink); border-bottom: 1px solid #b8c1b0; margin-top: 5px; }
.print-button { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); margin-top: 25px; padding: 5px 0; }
.print-button:hover { color: var(--accent); }
.print-button svg { width: 15px; height: 15px; }
.legal-article { min-width: 0; max-width: 788px; }
.legal-section { padding-block: 35px 36px; border-top: 1px solid var(--line); }
.legal-section:first-child { border-top: 0; padding-top: 0; }
.legal-section h2 { display: flex; align-items: baseline; gap: 17px; font-size: 26px; line-height: 1.3; letter-spacing: -.035em; margin-bottom: 20px; scroll-margin-top: 22px; }
.section-number { flex-shrink: 0; color: #89927f; font: 11px ui-monospace, SFMono-Regular, Consolas, monospace; letter-spacing: 0; }
.legal-section p, .legal-section li { font-size: 15px; line-height: 1.85; color: #5e675f; }
.legal-section p + p { margin-top: 15px; }
.legal-section strong, .legal-section li > span { font-weight: 500; color: #30392e; }
.legal-section ul { margin: 17px 0 0; padding-left: 20px; }
.legal-section h2 + ul { margin-top: 0; }
.legal-section li { padding-left: 5px; margin-top: 12px; }
.legal-section li:first-child { margin-top: 0; }
.legal-section li::marker { color: #9a8aaf; font-size: 10px; }
.legal-section ul + p, .legal-section .legal-caution + p { margin-top: 20px; }
.legal-section h3 { font-size: 17px; line-height: 1.5; letter-spacing: -.015em; margin-bottom: 14px; color: #30392e; font-weight: 500; }
.legal-group { padding: 23px 25px; margin-top: 20px; border: 1px solid #dce2d4; background: #eff2eb; }
.legal-group ul { margin-top: 14px; }
.legal-group li, .legal-group p { font-size: 14px; }
.legal-notice { background: #eeebf4; border-left: 2px solid #a594bf; padding: 22px 25px; margin-top: 22px; }
.legal-notice p { font-size: 14px; color: #635d6c; }
.legal-notice p:first-child { font-weight: 500; color: #594b6d; }
.legal-notice p + p { margin-top: 10px; }
.legal-caution { background: #f3eee7; border: 1px solid #e4dbcf; padding: 22px 25px; margin-top: 22px; }
.legal-caution ul { margin: 0; }
.legal-caution li { font-size: 14px; }
.legal-caution li::marker { color: #a68b6c; }
.legal-contact { display: grid; grid-template-columns: 1fr 1.25fr; border: 1px solid #d7dece; background: #edf1e7; margin: 23px 0 0; }
.legal-contact > div { padding: 23px 25px; }
.legal-contact > div + div { border-left: 1px solid #d7dece; }
.legal-contact dt { font-size: 10px; letter-spacing: .1em; color: #6d7b60; text-transform: uppercase; margin-bottom: 10px; }
.legal-contact dd { margin: 0; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.legal-contact a { border-bottom: 1px solid #b3bfa8; padding-bottom: 3px; }
.legal-contact a:hover { color: var(--accent); border-color: var(--accent); }
.legal-related { display: flex; justify-content: space-between; align-items: center; gap: 25px; margin-top: 10px; padding: 25px 0 0; border-top: 1px solid var(--line); }
.legal-related .eyebrow { font-size: 10px; color: var(--muted); margin-bottom: 10px; }
.legal-related h2 { font-size: 23px; letter-spacing: -.035em; }
.legal-related .related-arrow { font-size: 26px; color: var(--muted); transition: transform .2s; }
.legal-related:hover h2, .legal-related:hover .related-arrow { color: var(--accent); }
.legal-related:hover .related-arrow { transform: translate(3px, -3px); }
.legal-page .site-footer { border-top: 1px solid var(--line); background: #edf0e9; }
.legal-page .footer-column a[aria-current=page] { color: var(--accent); }
@media (max-width: 1100px) {
  .legal-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 48px; }
  .legal-hero-inner { gap: 35px; grid-template-columns: 1fr 240px; }
  .legal-art { width: 240px; }
}
@media (max-width: 800px) {
  .legal-hero-inner { grid-template-columns: 1fr 170px; gap: 20px; }
  .legal-art { width: 170px; transform: scale(.8); }
  .legal-layout { grid-template-columns: 1fr; gap: 35px; padding-block: 34px 55px; }
  .legal-sidebar { position: static; }
  .legal-toc { border: 1px solid var(--line); padding: 0 20px; background: #eff2eb; }
  .legal-toc > summary { cursor: pointer; pointer-events: auto; padding-block: 18px; }
  .toc-heading { color: #404a39; }
  .toc-chevron { display: inline-block; font-style: normal; margin-left: 12px; font-size: 15px; transition: transform .2s; }
  .legal-toc[open] .toc-chevron { transform: rotate(180deg); }
  .toc-links { margin: 0 0 20px; }
  .toc-links a { padding-block: 9px; }
  .legal-sidebar-note, .print-button { display: none; }
  .legal-article { max-width: none; }
  .legal-section h2 { font-size: 25px; }
}
@media (max-width: 700px) {
  .legal-nav .product-nav-links { gap: 24px; }
  .legal-hero-inner { display: block; padding-block: 43px 38px; }
  .legal-hero .eyebrow { font-size: 10px; margin-bottom: 21px; }
  .legal-hero h1 { font-size: clamp(40px, 8.9vw, 56px); }
  .legal-intro { font-size: 15px; margin-top: 20px; max-width: 450px; }
  .legal-date { font-size: 11px; margin-top: 23px; }
  .legal-art { display: none; }
  .legal-section { padding-block: 29px 30px; }
  .legal-section h2 { font-size: 24px; gap: 12px; margin-bottom: 18px; }
  .legal-section p, .legal-section li { font-size: 14px; line-height: 1.85; }
  .legal-group, .legal-notice, .legal-caution { padding: 20px; }
  .legal-section h3 { font-size: 16px; }
  .legal-contact { grid-template-columns: 1fr; }
  .legal-contact > div { padding: 20px; }
  .legal-contact > div + div { border-left: 0; border-top: 1px solid #d7dece; }
  .legal-related h2 { font-size: 23px; }
}
@media print {
  :root { background: #fff; color: #000; }
  html { scroll-behavior: auto; }
  .site-header, .legal-nav, .legal-art, .legal-sidebar, .legal-related, .site-footer, .skip-link { display: none !important; }
  .container { width: 100%; }
  .legal-hero-inner { display: block; padding-block: 0 22px; }
  .legal-hero { background: none; }
  .legal-hero h1 { font-size: 32px; }
  .legal-intro { font-size: 11pt; max-width: none; }
  .legal-layout { display: block; padding-block: 25px 0; }
  .legal-article { max-width: none; }
  .legal-section { padding-block: 20px; }
  .legal-section h2 { font-size: 17pt; break-after: avoid; }
  .legal-section h3 { break-after: avoid; }
  .legal-section p, .legal-section li, .legal-group p, .legal-group li, .legal-notice p { color: #222; font-size: 10pt; line-height: 1.6; }
  .legal-group, .legal-notice, .legal-caution, .legal-contact { break-inside: avoid; }
  @page { margin: 18mm; }
}
