/* Shared layout: logos, footer, about page */

.app-logo {
  height: 56px;
  width: auto;
  flex-shrink: 0;
  background: transparent;
  display: block;
}

.lang-select {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-family: var(--font);
  min-width: 110px;
}

.lang-select option {
  color: #222;
  background: #fff;
}

.site-footer {
  background: var(--dark);
  color: rgba(255, 255, 255, 0.85);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  z-index: 1000;
  font-size: 0.8rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-link {
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  opacity: 0.9;
  transition: opacity 0.2s;
}

.footer-link:hover {
  opacity: 1;
  text-decoration: underline;
}

.footer-supported {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-supported-label {
  opacity: 0.7;
  white-space: nowrap;
}

.vost-logos {
  display: flex;
  align-items: center;
  gap: 14px;
}

.vost-logo-link {
  display: flex;
  align-items: center;
  line-height: 0;
  opacity: 0.92;
  transition: opacity 0.2s;
}

.vost-logo-link:hover {
  opacity: 1;
}

.vost-logo {
  height: 32px;
  width: auto;
}

.vost-logo--pt {
  height: 28px;
}

/* About page */
body.page-about {
  height: auto;
  min-height: 100dvh;
  overflow: auto;
}

.about-main {
  flex: 1;
  overflow-y: auto;
  padding: 24px 20px 32px;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
}

.about-main h2 {
  font-size: 1.35rem;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.about-main h3 {
  font-size: 1rem;
  color: var(--blue);
  margin: 24px 0 8px;
}

.about-main p,
.about-main li {
  font-size: 0.92rem;
  line-height: 1.65;
  color: #333;
  margin-bottom: 12px;
}

.about-main ul {
  padding-left: 20px;
  margin-bottom: 16px;
}

.about-intro {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 20px;
  border-left: 4px solid var(--amber);
}

.about-section {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px 22px;
  margin-bottom: 16px;
}

.about-vost-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.about-vost-logo {
  height: 48px;
  width: auto;
  flex-shrink: 0;
}

.about-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.about-back:hover {
  text-decoration: underline;
}

@media (max-width: 700px) {
  .app-logo {
    height: 40px;
  }

  header {
    padding: 8px 12px;
    gap: 6px;
  }

  .header-left {
    min-width: 0;
    flex: 1;
  }

  header h1 {
    font-size: 0.82rem;
    line-height: 1.25;
  }

  header h1 small {
    display: none;
  }

  .header-right {
    flex-shrink: 0;
  }

  .lang-select {
    min-width: 0;
    padding: 5px 8px;
    font-size: 0.75rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    padding: 12px 14px;
    gap: 10px;
  }

  .footer-left {
    gap: 10px 14px;
    font-size: 0.75rem;
  }

  .footer-supported {
    width: 100%;
  }

  .vost-logo {
    height: 26px;
  }

  .about-main {
    padding: 16px 14px 28px;
  }

  .about-main h2 {
    font-size: 1.15rem;
  }

  .about-intro,
  .about-section {
    padding: 16px;
  }

  .cookie-consent {
    flex-direction: column;
    align-items: stretch;
    padding: 12px 14px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
  }

  .cookie-consent-btn {
    width: 100%;
  }
}

@media (max-width: 400px) {
  .footer-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}

/* Cookie consent banner */
.cookie-consent {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10000;
  background: var(--dark);
  color: rgba(255, 255, 255, 0.92);
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.25);
  font-size: 0.82rem;
  line-height: 1.5;
}

.cookie-consent-text {
  flex: 1;
  min-width: 200px;
  margin: 0;
}

.cookie-consent-link {
  color: #7ec8ff;
  font-weight: 600;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-consent-link:hover {
  color: #fff;
}

.cookie-consent-btn {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 20px;
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  flex-shrink: 0;
}

.cookie-consent-btn:hover {
  opacity: 0.92;
}

body.has-cookie-banner main.about-main {
  padding-bottom: max(120px, calc(24px + env(safe-area-inset-bottom)));
}

body.has-cookie-banner .site-footer {
  padding-bottom: max(10px, env(safe-area-inset-bottom));
}

/* Site disclaimer & confirm modals */
body.modal-open {
  overflow: hidden;
}

.sos-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  background: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  padding-bottom: max(16px, env(safe-area-inset-bottom));
}

.sos-modal-overlay.sos-modal-overlay--confirm {
  z-index: 10002;
}

.sos-modal {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28);
  width: 100%;
  max-width: 480px;
  max-height: min(90dvh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: var(--font, 'Segoe UI', system-ui, -apple-system, sans-serif);
  color: #222;
}

.sos-modal-header {
  background: var(--dark, #1a1a2e);
  color: #fff;
  padding: 16px 20px;
  font-size: 1.05rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sos-modal-body {
  padding: 20px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  flex: 1;
}

.sos-modal-body p {
  margin: 0 0 12px;
}

.sos-modal-body p:last-child {
  margin-bottom: 0;
}

.sos-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid #eee;
  flex-shrink: 0;
  flex-wrap: wrap;
}

.sos-modal-btn {
  border: none;
  border-radius: 8px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  min-width: 100px;
}

.sos-modal-btn-primary {
  background: var(--blue, #2980b9);
  color: #fff;
}

.sos-modal-btn-primary:hover {
  opacity: 0.92;
}

.sos-modal-btn-danger {
  background: var(--red, #c0392b);
  color: #fff;
}

.sos-modal-btn-danger:hover {
  opacity: 0.92;
}

.sos-modal-btn-ghost {
  background: #f0f0f0;
  color: #333;
}

.sos-modal-btn-ghost:hover {
  background: #e4e4e4;
}

@media (max-width: 700px) {
  .sos-modal-overlay {
    align-items: flex-end;
    padding: 0;
  }

  .sos-modal {
    max-width: 100%;
    border-radius: 12px 12px 0 0;
    max-height: 92dvh;
  }

  .sos-modal-actions {
    flex-direction: column-reverse;
  }

  .sos-modal-btn {
    width: 100%;
    min-width: 0;
    padding: 12px 18px;
  }
}

