/* Privacy UI, deliberately independent of the page layout. */
#tangra-privacy { color: #10201f; font: 400 15px/1.6 system-ui, -apple-system, "Segoe UI", sans-serif; }
#tangra-privacy [hidden] { display: none !important; }
.cookie-banner {
  position: fixed; z-index: 200; inset: auto 16px 16px; margin: 0 auto;
  width: calc(100% - 32px); max-width: 1160px; max-height: 75vh;
  overflow-y: auto; overscroll-behavior: contain;
  display: grid; grid-template-columns: 1fr 255px; gap: 26px; align-items: center;
  padding: 26px 30px; background: #fff; border: 1px solid #b8d5ce;
  border-top: 4px solid #007e70; border-radius: 22px;
  box-shadow: 0 12px 60px #07151440;
}
.cookie-eyebrow { display: block; color: #006c60; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
#tangra-privacy h2 { margin: 4px 0 9px; font-size: 23px; line-height: 1.25; letter-spacing: -.02em; }
#tangra-privacy h3 { margin: 0 0 5px; font-size: 16px; }
#tangra-privacy p { margin: 0 0 12px; }
#tangra-privacy .cookie-links { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-bottom: 0; font-size: 13px; }
#tangra-privacy a, .legal-content a { color: #006c60; text-decoration: underline; text-underline-offset: 3px; }
.cookie-actions { display: grid; gap: 9px; }
.cookie-button {
  appearance: none; border: 2px solid #006c60; border-radius: 10px;
  min-height: 46px; padding: 10px 16px; font: inherit; font-weight: 750;
  text-align: center; background: #006c60; color: #fff; cursor: pointer;
}
.cookie-button:hover { background: #004f47; border-color: #004f47; }
.cookie-button-outline { color: #006c60; background: #fff; }
.cookie-button-outline:hover { color: #004f47; background: #edf7f4; }
#tangra-privacy :focus-visible, .privacy-footer :focus-visible { outline: 3px solid #d8232a; outline-offset: 4px; }
.cookie-dialog {
  width: min(680px, calc(100% - 32px)); max-width: 680px;
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  padding: 28px; border: 1px solid #b8d5ce; border-radius: 22px;
  color: #10201f; background: #fff; box-shadow: 0 20px 90px #07151455;
}
.cookie-dialog:not([open]) { display: none; }
.cookie-dialog::backdrop { background: #071514a6; }
.cookie-dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.cookie-close {
  border: 1px solid #dce8e6; border-radius: 50%; width: 44px; height: 44px;
  font: 28px/1 system-ui, sans-serif; cursor: pointer; color: #10201f; background: #f2f8f6;
}
.cookie-category { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding: 18px 0; border-top: 1px solid #dce8e6; }
#tangra-privacy .cookie-category p { margin-bottom: 0; font-size: 14px; color: #435c56; }
.cookie-badge { flex-shrink: 0; padding: 5px 9px; border-radius: 8px; background: #e2f4ed; color: #005b4f; font-size: 11px; font-weight: 750; }
.cookie-badge-muted { color: #435c56; background: #eff3f2; }
#tangra-privacy .cookie-summary { padding: 12px; border-radius: 10px; background: #f0f7f4; font-size: 14px; }
.cookie-dialog-actions { grid-template-columns: 1fr 1fr; margin-top: 22px; }
.cookie-reset { display: block; min-height: 44px; padding: 8px 0; margin: 10px 0 4px; border: 0; background: none; color: #006c60; font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
#tangra-privacy .cookie-fine-print { margin: 0; color: #52665f; font-size: 12px; }
#tangra-privacy .cookie-status { position: fixed; z-index: 210; bottom: 18px; left: 16px; right: 16px; width: fit-content; max-width: min(650px, calc(100% - 32px)); margin: 0 auto; padding: 14px 20px; border: 1px solid #b8d5ce; border-radius: 12px; color: #fff; background: #123d34; box-shadow: 0 6px 24px #07151430; }
.privacy-footer { border-top: 1px solid #ffffff26; }
.privacy-footer-links { display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: center; padding: 18px 0; }
.footer .privacy-footer-links a { display: inline-block; color: #e3f2ed; margin: 0; padding: 4px 0; text-decoration: underline; text-underline-offset: 4px; font-size: 14px; }
.privacy-nojs { color: #b5d3cb; font-size: 13px; }
.legal-hero { min-height: 300px; padding: 64px 0; background: linear-gradient(120deg, #071514, #07594c); color: #fff; }
.legal-hero h1 { max-width: 900px; font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.12; letter-spacing: -.035em; margin: 18px 0; }
.legal-hero p { margin: 0; color: #d4ebe4; }
.legal-content { max-width: 900px; padding: 54px 0 72px; overflow-wrap: anywhere; }
.legal-content h2 { margin: 32px 0 10px; line-height: 1.3; font-size: 1.45rem; scroll-margin-top: 150px; }
.legal-content h3 { margin: 24px 0 8px; font-size: 1.15rem; }
.legal-content p, .legal-content li { color: #354f48; }
.legal-content li { margin: 6px 0; }
.legal-note { padding: 20px 24px; background: #e8f5ee; border-left: 4px solid #007e70; border-radius: 0 14px 14px 0; }
.legal-table-wrap { overflow-x: auto; margin: 20px 0; }
.legal-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.legal-table th, .legal-table td { border: 1px solid #cddfd9; text-align: left; vertical-align: top; padding: 14px; }
.legal-table th { color: #fff; background: #124f43; }
.legal-table td { background: #fff; }
.legal-nav { display: flex; flex-wrap: wrap; gap: 12px 24px; padding: 18px 0; border-bottom: 1px solid #cddfd9; }
.legal-content .cookie-button { display: inline-block; text-decoration: none; color: #fff; margin: 8px 0; }
.contact-form .form-privacy-note { font-size: 13px; color: #435c56; }
.form-privacy-note a { color: #006c60; text-decoration: underline; }
@media (max-width: 700px) {
  .cookie-banner { grid-template-columns: 1fr; gap: 16px; inset: auto 10px 10px; width: calc(100% - 20px); padding: 20px; border-radius: 16px; }
  .cookie-banner .cookie-actions { grid-template-columns: 1fr 1fr; }
  .cookie-banner .cookie-button-outline { grid-column: 1 / -1; }
  .cookie-banner .cookie-button { padding: 10px 8px; font-size: 13px; }
  #tangra-privacy h2 { font-size: 21px; }
  .cookie-dialog { padding: 22px; }
  .cookie-category { display: grid; gap: 8px; }
  .cookie-badge { width: fit-content; }
  .privacy-footer-links { display: grid; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { html:has(#tangra-privacy) { scroll-behavior: auto; } }
@media print { #tangra-privacy { display: none !important; } }
