/* echivo.app — legal pages (privacy note for event tickets). Loads after /assets/tickets/v2/tokens.css + components.css:
   Inter, paper surface, v2 header and footer come from there. This file only sets calm, readable legal typography:
   ink headings, one accent (none, really: links are ink + underline), 16/26 body, 68ch measure, collapsible sections. */

.lg { overflow-x: hidden; }
.lg-skip { position: absolute; left: -9999px; top: 0; }
.lg-skip:focus { left: var(--gutter); top: 8px; z-index: 60; background: var(--card); color: var(--ink-l); padding: 10px 14px; border-radius: var(--r-input); box-shadow: var(--shadow-card); }

.legal { padding-top: var(--sp-2); }
.legal a { padding-block: 13px; margin-block: -13px; /* inline links: 44 px hit area, no layout change */ color: var(--ink-l); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
@media (hover: hover) { .legal a:hover { text-decoration-thickness: 2px; } }
.legal .v2-link { text-decoration: none; padding-block: 0; margin-block: 0; }

/* head: eyebrow, one-colour ink title, lede, date */
.legal__head { padding: var(--sp-4) 0 var(--sp-5); }
.legal__head .v2-eyebrow { margin-bottom: var(--sp-2); }
.legal__head .v2-h1 { max-width: 22ch; }
.legal__lede { margin: var(--sp-3) 0 0; font-size: var(--fs-body); line-height: var(--lh-body); color: var(--ink-2); max-width: 60ch; }
.legal__meta { margin: var(--sp-2) 0 0; font-size: var(--fs-small); line-height: var(--lh-small); color: var(--ink-3); }

/* summary box */
.lg-summary { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: var(--sp-5); }
.lg-summary__title { margin: 0 0 var(--sp-2); font-size: var(--fs-section); line-height: var(--lh-section); font-weight: var(--fw-label); color: var(--ink-l); }
.lg-summary__list { margin: 0; padding: 0; list-style: none; display: grid; gap: var(--sp-2); }
.lg-summary__list li { position: relative; padding-left: 18px; font-size: 15px; line-height: 22px; color: var(--ink-2); }
.lg-summary__list li::before { content: ""; position: absolute; left: 2px; top: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--ink-l); opacity: .5; }
.lg-summary__more a { padding-block: 14px; margin-block: -14px; } /* 14 px text: still a 44 px tap target */
.lg-summary__more { margin: var(--sp-4) 0 0; padding-top: var(--sp-3); border-top: 1px solid var(--line-soft); font-size: var(--fs-meta); line-height: var(--lh-meta); color: var(--ink-3); }
.legal strong { color: var(--ink-l); font-weight: var(--fw-label); }

/* sections: one card, collapsible rows (find-in-page and #fragments open them in Chromium/Safari) */
.lg-sections { margin-top: var(--sp-6); background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow-card); overflow: hidden; }
.lg-sec + .lg-sec { border-top: 1px solid var(--line-soft); }
.lg-sec__sum { list-style: none; cursor: pointer; display: flex; align-items: center; gap: var(--sp-3); min-height: 56px; padding: 12px var(--sp-5); }
.lg-sec__sum::-webkit-details-marker { display: none; }
.lg-sec__sum::after { content: ""; flex: none; margin-left: auto; width: 8px; height: 8px; border: solid var(--ink-2); border-width: 0 1.75px 1.75px 0; transform: translateY(-2px) rotate(45deg); transition: transform var(--dur-1) var(--ease); }
.lg-sec[open] > .lg-sec__sum::after { transform: translateY(2px) rotate(-135deg); }
@media (hover: hover) { .lg-sec__sum:hover { background: var(--s-hover); } }
.lg-sec__sum:focus-visible { outline-offset: -2px; border-radius: 0; }
.lg-sec__title { margin: 0; font-size: var(--fs-body); line-height: 22px; font-weight: var(--fw-label); color: var(--ink-l); }
.lg-sec__n { display: inline-block; min-width: 1.4em; color: var(--ink-3); font-variant-numeric: tabular-nums; font-weight: var(--fw-medium); }
.lg-sec__body { padding: 0 var(--sp-5) var(--sp-5); }
.lg-sec__body > :first-child { margin-top: 0; }
.lg-sec__body > :last-child { margin-bottom: 0; }

.legal h3 { margin: var(--sp-5) 0 var(--sp-1); font-size: 15px; line-height: 22px; font-weight: var(--fw-label); color: var(--ink-l); }
.lg-sec__body p, .lg-sec__body ul { margin: 0 0 var(--sp-3); font-size: 15px; line-height: 24px; color: var(--ink-2); max-width: 68ch; }
.lg-sec__body ul { padding-left: 1.2em; }
.lg-sec__body li { margin: 4px 0; }

/* tables -> stacked rows on phones */
.tbl { width: 100%; border-collapse: collapse; margin: var(--sp-1) 0 var(--sp-4); font-size: 14px; line-height: 21px; }
.tbl th, .tbl td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); }
.tbl thead th { font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-3); font-weight: var(--fw-label); }
.tbl td { color: var(--ink-2); }
.tbl td:first-child { color: var(--ink-l); font-weight: var(--fw-label); }
@media (max-width: 639px) {
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl thead { position: absolute; left: -9999px; }
  .tbl tr { padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
  .tbl tr:first-child { padding-top: 0; }
  .tbl td { border: 0; padding: 2px 0; }
  .tbl td::before { content: attr(data-label); display: block; margin-top: 4px; font-size: var(--fs-eyebrow); line-height: var(--lh-eyebrow); letter-spacing: var(--ls-eyebrow); text-transform: uppercase; color: var(--ink-3); font-weight: var(--fw-label); }
  .tbl td:first-child::before { margin-top: 0; }
}

.contact { margin: var(--sp-2) 0 var(--sp-3); padding: 14px 16px; border-radius: var(--r-input); background: var(--paper); }
.contact p { margin: 0 0 4px; }
.contact p:last-child { margin: 0; }

.lg-back { margin: var(--sp-6) 0 0; }

@media print {
  .lg-skip, .lg-back, .v2-header, .v2-footer { display: none; }
  .lg-sections, .lg-summary { box-shadow: none; border: 1px solid #ccc; }
  .tbl tr { break-inside: avoid; }
}
/* print every section, even collapsed ones (separate rule: older engines drop it without breaking the block above) */
@media print { .lg-sec::details-content { content-visibility: visible; display: block; } }

/* cross-document View Transitions between the Heart2Heart pages. CSS-only, CSP-safe. */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; } }

/* v26: the notice on the dusk theme (dusk.css), like the rest of Echivo Events. The rules above read the paper tokens;
   here those tokens are re-pointed, for this page only, to the dusk surface: solid ink cards, light text (AA on #0b1020). */
.lg.dusk{--dk-max:560px;--card:#0b1020;--paper:rgba(255,255,255,.07);--ink-l:#f6f3ec;--ink-2:rgba(246,243,236,.8);--ink-3:rgba(246,243,236,.64);
  --line:rgba(255,255,255,.14);--line-soft:rgba(255,255,255,.12);--shadow-card:0 0 0 1px rgba(255,255,255,.14),0 30px 60px -40px rgba(0,0,0,.9)}
.lg.dusk .legal a{color:var(--gold)}
.lg.dusk .legal .v2-link{color:var(--text)}
.lg.dusk .legal__head .v2-h1{font-size:clamp(2rem,8vw,2.6rem);line-height:1.02;font-weight:900;letter-spacing:-.03em;max-width:16ch}
.lg.dusk .lg-summary,.lg.dusk .lg-sections{border-radius:24px}
.lg.dusk .lg-summary__list li::before{background:var(--gold);opacity:1}
@media print{ body.lg.dusk{background:#fff;color:#000} body.lg.dusk::before{display:none}
  .lg.dusk{--card:#fff;--paper:#f4f4f4;--ink-l:#000;--ink-2:#222;--ink-3:#444;--line-soft:#ccc} .lg.dusk .legal a{color:#000} .dk-header{display:none} }
