/* css/legal.css - v6.1.15 - 2026-11-20
 * Use legal-* for policy pages, contact and refund forms.
 * Author: IT and events
 * Latest changes: 2026-11-20 - a11y: on-accent text colors (accent bg -> accent-dark text 5.9:1, accent-strong bg -> --on-accent-strong), focus outlines accent-strong, min-heights 44px. Previously: icon hover-flip moved from "parent > .fa" child selectors to the .fa-flip icon class.
 *
 * CSS files overview:
 * css/core.css - Shared shell: single root and dark theme, base, navigation, notifications, form errors, side panel with its ad, shared ad components (core-ads-*), error page, footer, scroll controls, Font Awesome subset styles.
 * css/index.css - Homepage: hero, index-pri-* and index-sec-* sections (projects, services, events agenda), contact form and contact result pages (index-*).
 * css/core-painting.css - Homepage living painting scene only (paint-*): monthly palettes, landscape, weather and motion.
 * css/admin.css - Administration: review queues, event editor, billing, purchases and support threads (admin-*).
 * css/ads.css - Public advertising directory: placements, listings and areas (ads-*).
 * css/auth.css - Sign-in, account setup and password recovery (auth-*).
 * css/legal.css - Legal pages, contact, refunds/withdrawal, press and FAQ (legal-*).
 * css/payment.css - Purchase flow, forms, service terms and invoice documents with print styles (payment-*).
 * css/rabo.css - Hosted bank payment return page (rabo-*).
 * css/shop.css - Shop catalogue, advertising info/calendar/examples, Chatocat plans and donations (shop-*).
 * css/user.css - Account dashboard, cases and agreements (user-*).
 *
 * legal.css section overview:
 * 1. Buttons
 * 2. Heroes and section copy
 * 3. Refund request status
 * 4. Policy and information pages
 * 5. Refund request form
 * 6. Legal overview
 * 7. Public operator details
 * 8. Public media assets
 * 9. Legal Contact
 */
/* Buttons */
.legal-button:focus-visible {outline: 3px solid var(--accent-strong); outline-offset: 3px;}
.legal-button {position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: .72em 1.2em; overflow: hidden; border: 1px solid var(--border-color); border-radius: 8px; background: var(--accent); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); color: var(--accent-dark); cursor: pointer; font: inherit; font-size: 1rem; font-weight: 700; letter-spacing: 0; line-height: 1.2; text-align: center; text-decoration: none; transition: background .22s,border-color .22s,box-shadow .22s,color .22s;}
.legal-button::after {content: ""; position: absolute; inset: 1px; border-radius: calc(8px - 1px); background: linear-gradient(110deg,transparent,rgba(255,255,255,.28),transparent); opacity: 0; z-index: -1; transition: opacity .22s;}
.legal-button:hover {border-color: var(--accent); background: var(--accent-strong); box-shadow: var(--shadow-soft),inset 0 0 0 1px rgba(255,255,255,.4); color: var(--on-accent-strong);}
.legal-button:hover::after {opacity: .85;}
.legal-button:hover .fa-flip {transform: rotateY(180deg);}
/* Heroes and section copy */
.legal-hero {display: flex; align-items: center; justify-content: center; width: 100%; padding: 76px 20px; background: linear-gradient(135deg,var(--hero-bg),var(--accent)); color: var(--hero-text); text-align: center;}
.legal-hero-content {display: flex; flex-direction: column; align-items: center; max-width: 820px; margin: 0 auto;}
.legal-hero-title {display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin: 0 0 18px; color: var(--hero-text); font-size: clamp(2rem,4vw,3rem); font-weight: 800; line-height: 1.1; text-align: center;}
.legal-hero-text {max-width: 760px; margin: 0 0 28px; color: var(--hero-text); font-size: 1.18rem; text-align: center;}
.legal-section {padding: 60px 0; background: var(--surface); box-shadow: inset 0 1px 0 rgba(0,106,142,.08); transition: background .22s,box-shadow .22s;}
.legal-section-title {display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; margin: 0 0 18px; color: var(--page-text); font-size: 2rem; font-weight: 800; line-height: 1.15; text-align: center;}
.legal-section-intro {max-width: 820px; margin: 0 auto 22px; color: var(--page-text); font-size: 1.08rem; text-align: center;}
/* Refund request status */
.legal-refunds-status {width: 100%; max-width: 980px; margin: 0 auto; padding: 14px 16px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); box-shadow: var(--shadow-soft); color: var(--page-text); text-align: center;}
/* Policy and information pages */
.legal-article {max-width: 70ch; margin: 0 auto; padding: 24px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); box-shadow: var(--shadow-soft); color: var(--page-text);}
.legal-article-heading {margin: 0 0 .5em; color: var(--page-text); font-size: 1.2rem; font-weight: 800; line-height: 1.3;}
.legal-article-text {margin: 0 0 1.1em; color: var(--page-text); font-size: 1.08rem; line-height: 1.65; text-align: left; overflow-wrap: anywhere;}
.legal-article-link {color: var(--accent-strong); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; transition: color .22s;}
.legal-article-link:hover {color: var(--page-text);}
.legal-article-link:focus-visible {outline: 3px solid var(--accent-strong); outline-offset: 3px;}
.legal-article-action {display: flex; justify-content: center; margin-top: 24px;}
/* Refund request form */
.legal-refunds-form-title {margin: 20px 0 12px; color: var(--accent-strong); font-size: 1.25rem; line-height: 1.35;}
.legal-refunds-contact-trap {position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden;}
.legal-refunds-form {display: flex; flex-direction: column; gap: 16px; width: min(760px,100%); margin: 22px auto 0; padding: 18px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); box-shadow: var(--shadow-soft);}
.legal-refunds-field-label {display: flex; align-items: center; gap: 8px; color: var(--page-text); font-weight: 800;}
.legal-refunds-field {width: 100%; padding: 12px 13px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--surface); color: var(--page-text); font: inherit;}
.legal-refunds-message {width: 100%; min-height: 150px; padding: 12px 13px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--surface); color: var(--page-text); font: inherit; line-height: 1.55; resize: vertical;}
.legal-refunds-field:focus {border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,184,206,.16); outline: none;}
.legal-refunds-message:focus {border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0,184,206,.16); outline: none;}
.legal-refunds-form-note {margin: 0; color: var(--page-text); font-size: .95rem; line-height: 1.55;}
.legal-refunds-purchase-summary {width: min(100%,760px); margin: 18px auto; padding: 18px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); color: var(--page-text); text-align: left; overflow-wrap: anywhere;}
.legal-refunds-request-copy {white-space: pre-line; overflow-wrap: anywhere;}
/* Legal overview */
.legal-directory-section {padding: 0 0 32px; background: var(--surface); color: var(--page-text);}
.legal-directory-title {display: flex; align-items: center; gap: 12px; margin: 12px 0 8px; font-size: clamp(1.85rem,4.2vw,3rem); font-weight: 800; line-height: 1.15;}
.legal-directory-intro {max-width: 45rem; margin-bottom: 26px; font-size: 1.08rem; line-height: 1.55;}
.legal-directory {display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; align-items: start;}
.legal-directory-group {display: grid; gap: 10px; min-width: 0;}
.legal-directory-heading {color: var(--page-text); font-size: 1.18rem; font-weight: 800; line-height: 1.3;}
.legal-directory-links {display: grid; gap: 8px; list-style: none;}
.legal-directory-link {position: relative; display: grid; align-content: start; gap: 4px; min-height: 94px; padding: 13px 34px 13px 14px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); color: var(--page-text); text-decoration: none; overflow-wrap: anywhere;}
.legal-directory-link::after {position: absolute; top: 18px; right: 15px; width: 7px; height: 7px; content: ""; border-top: 2px solid var(--accent-strong); border-right: 2px solid var(--accent-strong); transform: rotate(45deg);}
.legal-directory-link:hover {border-color: var(--accent-strong); background: var(--surface);}
.legal-directory-link:focus-visible {outline: 3px solid var(--accent-strong); outline-offset: 2px;}
.legal-directory-name {color: var(--accent-strong); font-size: 1rem; font-weight: 800; line-height: 1.35;}
.legal-directory-description {font-size: .94rem; line-height: 1.45;}
/* Public operator details */
.legal-operator {max-width: 70ch; margin-top: 34px; padding-top: 20px; border-top: 1px solid var(--border-color);}
.legal-operator-name {margin: 10px 0 12px; color: var(--page-text); font-size: 1.15rem; font-weight: 800; line-height: 1.3;}
.legal-operator-details {display: grid; grid-template-columns: max-content minmax(0,1fr); gap: 6px 18px; margin: 0 0 18px; color: var(--page-text); font-size: 1rem; line-height: 1.5;}
.legal-operator-label {font-weight: 700;}
.legal-operator-value {min-width: 0; white-space: nowrap; font-variant-numeric: tabular-nums;}
/* Public media assets */
.legal-press-media-assets {display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,260px),1fr)); gap: 24px; margin: 28px 0;}
.legal-press-media-card {display: flex; flex-direction: column; gap: 16px; min-width: 0; padding: 20px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); color: var(--page-text); text-align: center;}
.legal-press-media-image {display: block; width: 100%; height: 220px; object-fit: contain; background: #fff; border-radius: 4px;}
.legal-press-media-description {margin: 0; color: var(--page-text);}
/* Legal Contact */
.legal-contact-hero {padding: clamp(28px,5vw,56px) 0; background: linear-gradient(135deg,var(--hero-bg),var(--accent-dark)); color: var(--hero-text);}
.legal-contact-title {display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: clamp(1.85rem,4vw,3rem); font-weight: 800; line-height: 1.15;}
.legal-contact-lead {max-width: 42rem; font-size: 1.08rem; line-height: 1.5;}
.legal-contact-grid {display: grid; grid-template-columns: minmax(0,1.25fr) minmax(0,1fr); gap: 24px; align-items: start;}
.legal-contact-details {display: grid; gap: 24px; min-width: 0;}
.legal-contact-card {display: grid; gap: 14px; min-width: 0; padding: clamp(16px,3vw,28px); border: 1px solid var(--border-color); border-radius: 8px; background: var(--card-bg); box-shadow: var(--shadow-soft); color: var(--page-text); text-align: left;}
.legal-contact-heading {font-size: 1.35rem; font-weight: 800; line-height: 1.25;}
.legal-contact-route {display: grid; justify-items: start; gap: 8px; padding-top: 14px; border-top: 1px solid var(--border-color);}
.legal-contact-route-title {font-size: 1.04rem; font-weight: 800; line-height: 1.3;}
.legal-contact-text {font-size: 1rem; line-height: 1.58; overflow-wrap: anywhere;}
.legal-contact-form-link {display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: .65em 1em; border: 1px solid var(--accent-dark); border-radius: 8px; background: var(--hero-bg); color: var(--hero-text); font-weight: 800; text-decoration: none; transition: background .22s;}
.legal-contact-form-link:hover {background: var(--accent-dark);}
.legal-contact-form-link:focus-visible {outline: 3px solid var(--accent-strong); outline-offset: 3px;}
.legal-contact-call {display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-strong); font-weight: 800; text-decoration: underline; text-underline-offset: 3px;}
.legal-contact-call:hover {color: var(--page-text);}
.legal-contact-call:focus-visible {outline: 3px solid var(--accent-strong); outline-offset: 3px;}
.legal-contact-mail {display: inline-flex; align-items: center; min-height: 44px; color: var(--accent-strong); font-weight: 800; text-decoration: underline; text-underline-offset: 3px;}
.legal-contact-mail:hover {color: var(--page-text);}
.legal-contact-mail:focus-visible {outline: 3px solid var(--accent-strong); outline-offset: 3px;}
.legal-contact-note {margin-top: 4px; padding-top: 14px; border-top: 1px solid var(--border-color); font-size: .95rem; line-height: 1.55; color: var(--page-text);}
.legal-contact-provider {font-size: .92rem; line-height: 1.55; overflow-wrap: anywhere;}
.legal-contact-address {font-style: normal; line-height: 1.58;}
@media (max-width:820px) {
    .legal-directory {grid-template-columns: minmax(0,1fr); gap: 24px;}
    .legal-directory-link {min-height: 72px;}
    .legal-contact-grid {grid-template-columns: minmax(0,1fr);}
    .legal-hero {padding: 58px 16px;}
    .legal-hero-title {font-size: 2rem;}
    .legal-hero-text {font-size: 1.05rem;}
    .legal-section {padding: 44px 0;}
}
@media (max-width:620px) {
    .legal-contact-form-link {width: 100%;}
    .legal-button {width: 100%;}
    .legal-hero-title {font-size: 1.75rem;}
    .legal-section-title {font-size: 1.55rem;}
}
@media (max-width:480px) {
    .legal-hero {padding: 46px 14px;}
    .legal-hero-title {font-size: 1.55rem;}
    .legal-hero-text {font-size: 1rem;}
    .legal-section-intro {font-size: 1rem;}
    .legal-section-title {font-size: 1.38rem;}
}
