/* Kapitalum build-specific overrides. Loaded after style.css (ported verbatim from the prototype).
   Keep this file tiny and note every rule in docs/design.md (accepted differences). */

/* Home footer intro: same container width as the rest of the footer (.wrap), with the slim footer's vertical spacing. */
.footer-intro-wrap { padding-block: 40px 0; }
@media (max-width: 720px) { .footer-intro-wrap { padding-block: 48px 32px; } }

/* Contact form when it is live (ADR 0008). The prototype only has the disabled demo, so these states are new:
   error text, success message, consent line. Everything else reuses the prototype's form styles (.demo-form). */
.contact-form [hidden] { display: none !important; }
.contact-form .form-body { display: flex; flex-direction: column; gap: 48px; }
.contact-form input[type="checkbox"] { width: 20px; height: 20px; padding: 0; margin: 2px 0 0; flex-shrink: 0; border: 1px solid var(--navy-900); accent-color: var(--navy-900); cursor: pointer; }
.demo-form .form-consent { flex-direction: row; align-items: flex-start; gap: 14px; font: 300 14px/1.5 var(--font-sans); letter-spacing: normal; text-transform: none; color: var(--slate-500); }
.form-consent a { color: inherit; text-decoration: underline; }
.form-consent-title { display: block; margin-bottom: 4px; font-weight: 600; color: var(--navy-900); }
.form-error { flex: 1; font: 400 14px/20px var(--font-sans); color: #8A1F1F; }
.form-success { display: flex; flex-direction: column; gap: 8px; outline: none; }
.contact .form-success h2 { margin: 0; font: 400 var(--fs-h2)/1.2 var(--font-serif); color: var(--navy-900); }
.contact-form .button[disabled] { opacity: .55; cursor: wait; }

/* English labels are longer: keep the header links and button on one line */
html[lang=en] .nav-links a,html[lang=en] .header-cta{white-space:nowrap}
html[lang=en] .brand{flex:none}
/* English header is wider: between 1101 and 1239 px use the menu button (as on Home) so nothing is cut off */
@media (min-width:1101px) and (max-width:1239px){
  html[lang=en] .nav-links,html[lang=en] .header-cta,html[lang=en] .lang-switch--header{display:none}
  html[lang=en] .menu-toggle{display:grid}
}

/* Plain text pages (privacy, cookies, terms): no image, title above the same text column as articles */
.legal-head { padding-top: clamp(140px, 22vh, 220px); }
.legal-head .article-grid { padding-block: 0; }
.legal-head h1 { grid-column: 2; font-size: clamp(32px, 1.6vw + 17px, 48px); line-height: 1.167; letter-spacing: -.03em; }
.page-legal .article-grid.wrap { padding-block: 0; }
.page-legal .article-layout .article-grid { padding-block: 48px 120px; }
.page-legal .prose { font-size: 18px; line-height: 1.6; }
.page-legal .prose h2 { margin-top: 48px; font-size: clamp(22px, .6vw + 16.5px, 28px); }
.prose table { display: block; overflow-x: auto; width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.5; }
.prose th, .prose td { padding: 12px 16px 12px 0; border-bottom: 1px solid var(--grey-200); text-align: left; vertical-align: top; }
.prose th { font-weight: 600; white-space: nowrap; }
@media (max-width: 1100px) { .legal-head h1 { grid-column: 1; } }

/* Credits link in the footer bottom line: same look as the text, underline on hover (as the footer links) */
.footer-bottom a { color: inherit; }
.footer-bottom a:hover { text-decoration: underline; text-underline-offset: 4px; }
