/* =========================================================================
   OrganicLens by DietOrganic: Legal & Contact add-on (v1.1)
   Loaded AFTER design-system.css on /privacy, /terms and /contact.
   Reuses the Design System article pattern (.page-hero, .dek, .article-meta,
   .article, .prose, .toc, .table-wrap, .compare) and adds only what legal
   pages need. Tokens only, so light/dark themes work automatically.
   ========================================================================= */

/* ---------- Hero extras ---------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; padding: 0; margin: 0 0 var(--sp-5); font-size: var(--fs-xs); color: var(--text-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: var(--sp-2); opacity: .6; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero .article-meta { padding: 0; margin: 0; }
.page-hero--wide .container { max-width: var(--container); }
.page-hero--wide .dek { max-width: 46rem; }

/* ---------- Legal article ---------- */
.legal .legal-section h2 { display: flex; align-items: baseline; gap: var(--sp-3); font-size: var(--fs-xl); margin-top: var(--sp-7); }
.legal .legal-section:first-of-type h2 { margin-top: 0; }
.legal h2 .num { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .08em; color: var(--accent); flex: none; }
.legal h3 { font-family: var(--font-sans); font-size: var(--fs-base); font-weight: 700; letter-spacing: 0; }
.legal .toc h2 { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); line-height: 1.4; margin: 0 0 var(--sp-3); }
.legal code { font-size: .86em; padding: .1em .4em; border-radius: 6px; background: var(--accent-soft); color: var(--heading); overflow-wrap: anywhere; }
.legal .compare th[scope="row"] { white-space: normal; min-width: 11rem; }

/* ---------- Callouts & summary cards ---------- */
.callout { display: flex; gap: var(--sp-3); align-items: flex-start; padding: var(--sp-4) var(--sp-5); margin: var(--sp-5) 0; border-radius: var(--r-md); background: var(--accent-soft); border: 1px solid var(--border); border-left: 4px solid var(--accent); font-size: var(--fs-sm); line-height: 1.6; }
.callout .icon { width: 22px; height: 22px; color: var(--accent); flex: none; margin-top: 1px; }
.callout p { margin: 0 !important; }
.callout--disclaimer { border-left-color: var(--cta); background: var(--surface); box-shadow: var(--shadow-sm); }
.callout--disclaimer .icon { color: var(--cta); }
.callout--disclaimer p { font-weight: 600; color: var(--heading); }
.prose .summary-grid, .summary-grid { display: grid; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-2); padding: 0; list-style: none; }
.summary-card { display: flex; gap: var(--sp-3); padding: var(--sp-4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--border); }
.summary-card .icon-tile { width: 40px; height: 40px; flex: none; }
.summary-card strong { display: block; color: var(--heading); font-size: var(--fs-sm); line-height: 1.4; }
.summary-card span { display: block; font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.5; }

/* ---------- Contact page ---------- */
.contact-section { padding: clamp(2.5rem, 2rem + 3vw, 4.5rem) 0 var(--section-y); }
.contact__grid { display: grid; gap: var(--sp-6); align-items: start; }
.card-panel { padding: clamp(1.5rem, 1rem + 2vw, 2.5rem); border-radius: var(--r-xl); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.card-panel h2 { font-size: var(--fs-xl); }
.card-panel__note { color: var(--text-muted); font-size: var(--fs-sm); }
.contact-form { display: grid; gap: var(--sp-4); }
.field { display: grid; gap: var(--sp-2); }
.field label { font-size: var(--fs-sm); font-weight: 700; color: var(--heading); }
.field .opt { font-weight: 500; color: var(--text-muted); }
.field .hint { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.field-input { width: 100%; min-height: 50px; padding: .75rem 1rem; border-radius: var(--r-sm); border: 1.5px solid var(--border); background: var(--bg); color: var(--text); transition: border-color .2s, box-shadow .2s; }
:root[data-theme="dark"] .field-input { border-color: rgba(244,241,234,.2); }
.field-input::placeholder { color: var(--text-muted); opacity: .8; }
.field-input:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.field-input[aria-invalid="true"] { border-color: var(--cta); }
select.field-input { appearance: none; -webkit-appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2340916C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 18px; }
textarea.field-input { min-height: 160px; resize: vertical; line-height: 1.55; }
.field-error { margin: 0; min-height: 1.1em; font-size: var(--fs-xs); font-weight: 600; color: var(--cta); }
.consent-light { display: flex; gap: var(--sp-3); align-items: flex-start; font-size: var(--fs-sm); font-weight: 500 !important; color: var(--text) !important; cursor: pointer; line-height: 1.5; }
.consent-light input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); flex: none; cursor: pointer; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: var(--sp-3) 0 0; font-size: var(--fs-sm); font-weight: 600; color: var(--cta); min-height: 1.2em; }
.contact-form button[disabled] { opacity: .65; cursor: progress; transform: none; }
.contact-done { display: none; text-align: center; padding: var(--sp-6) var(--sp-4); }
.contact-done .icon-tile { margin: 0 auto var(--sp-4); width: 64px; height: 64px; background: var(--accent); color: #fff; }
.contact-done .icon-tile .icon { width: 30px; height: 30px; }
.contact-done p { color: var(--text-muted); max-width: 30rem; margin-inline: auto; }
.is-sent .contact-form, .is-sent .card-panel__note, .is-sent > h2 { display: none; }
.is-sent .contact-done { display: block; }
.quick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--sp-3); }
.quick-list a { display: flex; gap: var(--sp-3); align-items: center; padding: var(--sp-3) var(--sp-4); border-radius: var(--r-md); border: 1px solid var(--border); background: var(--bg); color: var(--heading); text-decoration: none; font-weight: 700; font-size: var(--fs-sm); transition: border-color .2s, transform .2s var(--ease); }
.quick-list a:hover { border-color: var(--accent); transform: translateX(2px); color: var(--heading); }
.quick-list .icon { width: 20px; height: 20px; color: var(--accent); flex: none; }
.quick-list small { display: block; font-weight: 500; color: var(--text-muted); }
.tips-list { margin: 0 0 var(--sp-4); padding-left: 1.2rem; display: grid; gap: var(--sp-3); font-size: var(--fs-sm); }
.tips-list li::marker { color: var(--accent); }
.aside-stack { display: grid; gap: var(--sp-5); }

@media (min-width: 900px) {
  .prose .summary-grid, .summary-grid { grid-template-columns: 1fr 1fr; }
  .contact__grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: var(--sp-7); }
}
@media print {
  .site-header, .site-footer .footer-grid, .toc, .skip-link { display: none !important; }
}
