/* Shared legal pages and cookie controls use the existing Vaqtria palette. */
:root { --site-header-height: 90px; --cookie-space: 0px; }
[hidden] { display: none !important; }
body { padding-bottom: var(--cookie-space); }
html { scroll-padding-top: calc(var(--site-header-height) + 20px); }
.site-header { height: auto; min-height: 90px; padding-block: 8px; }
.site-header > * { min-width: 0; }
.header-contacts { flex-shrink: 1; }
.header-contacts a { overflow-wrap: anywhere; font-size: .875rem; }
.site-header .brand span { min-width: 0; overflow-wrap: anywhere; }
.menu-toggle { min-width: 44px; min-height: 44px; }
.mobile-nav { top: var(--site-header-height); max-height: calc(100dvh - var(--site-header-height)); }
.site-footer { flex-wrap: wrap; }
.site-footer > div { align-items: center; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a, .cookie-footer-button { display: inline-flex; align-items: center; min-height: 44px; font-size: .875rem; }
.cookie-footer-button { padding: 0; border: 0; background: transparent; color: inherit; font: inherit; font-size: .875rem; text-align: left; }
.cookie-footer-button:hover { color: var(--green); }
.privacy-content { width: 100%; max-width: 64rem; padding: calc(var(--site-header-height) + 48px) clamp(20px, 5vw, 64px) 80px; overflow-wrap: anywhere; }
.privacy-content > article { min-width: 0; }
.privacy-topline { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 32px; margin-bottom: 36px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.privacy-content .back-link { display: inline-flex; align-items: center; min-height: 44px; margin: 0; padding: 0; font-size: .875rem; line-height: 1.5; }
.privacy-topline .privacy-label { margin: 0; color: #a8b6ac; font-size: .875rem; line-height: 1.5; }
.privacy-content h1 { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 500; line-height: 1.14; letter-spacing: -.035em; margin: 0 0 24px; }
.privacy-content h2 { font-size: clamp(1.375rem, 2.5vw, 1.75rem); line-height: 1.3; margin: 40px 0 16px; scroll-margin-top: calc(var(--site-header-height) + 24px); }
.privacy-content h3 { font-size: 1.125rem; line-height: 1.5; margin: 26px 0 12px; }
.privacy-content p, .privacy-content li { font-size: 1rem; line-height: 1.8; color: #b3bfb7; }
.privacy-content p { margin: 14px 0; }
.privacy-content ul { margin: 16px 0; padding-left: 24px; }
.privacy-content li + li { margin-top: 5px; }
.privacy-content strong { color: var(--text); font-weight: 600; }
.privacy-content .privacy-dates { font-size: .875rem; color: #a8b6ac; margin-bottom: 28px; }
.privacy-content .privacy-storage { margin-top: 32px; padding: 24px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); }
.privacy-storage h2 { margin-top: 0; }
.privacy-storage button { text-decoration: underline; text-underline-offset: 4px; color: var(--green); }
.cookie-banner { position: fixed; inset: auto max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)); z-index: 60; width: auto; max-width: 1120px; margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; gap: 24px; padding: 24px 56px 24px 28px; color: var(--text); background: #0c1510; border: 1px solid #385144; border-radius: 10px; box-shadow: 0 16px 70px #0009; max-height: calc(100dvh - 32px); overflow-y: auto; }
.cookie-banner-copy { min-width: 0; }
.cookie-banner h2 { font-size: 1.0625rem; font-weight: 600; line-height: 1.4; letter-spacing: -.01em; }
.cookie-banner p { font-size: .875rem; line-height: 1.6; color: #b3bfb7; margin: 8px 0; }
.cookie-policy-link { display: inline-block; color: var(--green); font-size: .875rem; line-height: 1.6; text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.cookie-banner-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.cookie-action { display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 44px; border: 1px solid #769c86; border-radius: 5px; padding: 10px 12px; background: #13251a; color: var(--text); font: inherit; font-size: .875rem; font-weight: 500; line-height: 1.4; text-align: center; overflow-wrap: anywhere; }
.cookie-action:hover { background: #203d2b; border-color: var(--green); }
.cookie-customize { grid-column: 1 / -1; }
.cookie-dismiss { position: absolute; right: 8px; top: 8px; display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 5px; padding: 0; background: transparent; color: #d1ddd4; font-size: 28px; font-weight: 400; line-height: 1; }
.cookie-dismiss:hover { background: #203428; }
.cookie-dialog { width: min(620px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; border: 1px solid #486853; border-radius: 10px; color: var(--text); background: #0c1510; overflow: auto; }
.cookie-dialog[open] { display: flex; flex-direction: column; }
.cookie-dialog::backdrop { background: #000b; backdrop-filter: blur(4px); }
.cookie-dialog-heading { position: relative; flex: none; padding: 28px 60px 12px 28px; }
.cookie-dialog-heading h2 { font-size: clamp(1.375rem, 4vw, 1.625rem); font-weight: 500; line-height: 1.3; letter-spacing: -.025em; }
.cookie-dialog-body { padding: 0 28px 24px; min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.cookie-dialog-body > p { font-size: .9375rem; line-height: 1.65; color: #b3bfb7; margin: 0 0 20px; }
.cookie-category { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 20px 0; border-top: 1px solid var(--line); cursor: pointer; }
.cookie-category:first-of-type { cursor: default; }
.cookie-category h3, .cookie-category-title { display: block; color: var(--text); font-size: 1rem; font-weight: 500; line-height: 1.5; margin: 0; }
.cookie-category p, .cookie-category-description { display: block; font-size: .875rem; font-weight: 400; line-height: 1.6; color: #b3bfb7; margin: 6px 0 0; }
.cookie-always { color: var(--green); font-size: .875rem; line-height: 1.5; text-align: right; }
.cookie-switch { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 52px; height: 32px; margin: 6px 0; border: 1px solid #71887a; border-radius: 20px; background: #25342b; cursor: pointer; }
.cookie-switch::after { content: ''; position: absolute; width: 22px; height: 22px; top: 4px; left: 4px; border-radius: 50%; background: #d5ded7; transition: transform .15s; }
.cookie-switch:checked { border-color: var(--green); background: #325e43; }
.cookie-switch:checked::after { transform: translateX(20px); background: var(--green); }
.cookie-dialog-body > .cookie-retention { font-size: .875rem; margin: 8px 0 12px; }
.cookie-dialog-actions { flex: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; padding: 16px 28px 24px; border-top: 1px solid var(--line); }
.cookie-save { grid-column: 1 / -1; }
.cookie-status { position: fixed; bottom: max(20px, env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px); padding: 14px 20px; border-radius: 6px; background: #d1edda; color: #092514; font-size: .875rem; line-height: 1.5; z-index: 80; visibility: hidden; opacity: 0; pointer-events: none; }
.cookie-status.show { visibility: visible; opacity: 1; }
.cookie-banner :focus-visible, .cookie-dialog :focus-visible, .cookie-footer-button:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }
@media (max-width: 1200px) {
  .desktop-nav, .header-cta { display: none; }
  .menu-toggle { display: block; }
}
@media (max-width: 1024px) {
  :root { --site-header-height: 120px; }
  .site-header { min-height: 120px; padding-block: 0; grid-template-rows: minmax(72px, auto) auto; }
  .header-contacts { height: auto; min-height: 44px; padding-block: 2px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .header-contacts a[href^="tel:"] { white-space: normal; }
  .privacy-content { padding-top: calc(var(--site-header-height) + 32px); }
  .site-footer > div { width: 100%; justify-content: flex-start; }
}
@media (max-width: 700px) {
  .cookie-banner { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 20px; }
  .cookie-banner h2 { padding-right: 28px; }
  .cookie-dialog-heading { padding: 22px 60px 12px 20px; }
  .cookie-dialog-body { padding: 0 20px 20px; }
  .cookie-dialog-actions { padding: 14px 20px 20px; }
  .cookie-category { gap: 12px; }
}
@media (max-width: 480px) {
  .privacy-topline { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; padding-bottom: 20px; }
  .privacy-content { padding-inline: 20px; }
  .privacy-content .privacy-storage { padding: 20px; }
  .site-footer { gap: 12px; }
  .site-footer > div { gap: 4px 18px; }
}
@media (max-width: 1024px) and (max-height: 600px) and (orientation: landscape) {
  :root { --site-header-height: 58px; }
  .site-header { min-height: 58px; padding-block: 4px; }
  .header-contacts { min-height: 0; padding-block: 0; }
  .cookie-banner { padding-block: 16px; gap: 12px; }
  .cookie-dialog { max-height: calc(100dvh - 20px); }
  .cookie-dialog-heading { padding-top: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .cookie-switch::after { transition: none; }
}
