/* Privacy + Support — matches KLYear FMS look */
:root {
  color-scheme: light dark;
  --bg-color: #000000;
  --label-color: #e0e0e0;
  --border-color: #333333;
  --plus-color: #00a1e4;
  --title-color: #00a1e4;
  --text-color: #e0e0e0;
  --heading-color: #00a1e4;
  --section-bg: rgba(26, 26, 26, 0.85);
}

@media (prefers-color-scheme: light) {
  :root {
    --bg-color: #ffffff;
    --label-color: #000000;
    --border-color: #cccccc;
    --plus-color: #00a1e4;
    --title-color: #003d5c;
    --text-color: #333333;
    --heading-color: #003d5c;
    --section-bg: rgba(245, 245, 245, 0.9);
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  /* Phone / touch: solid bg — do not load cockpit photo */
  background-color: var(--bg-color);
  background-image: none;
  min-height: 100vh;
  width: 100%;
  position: relative;
}

html::before {
  content: '';
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  background: transparent;
  z-index: 0;
  pointer-events: none;
}

/* Desktop / mouse: load cockpit photo + dim overlay */
@media (hover: hover) and (pointer: fine) {
  html {
    background-image: url('../background.jpeg');
    background-image: image-set(
      url('../background.webp') type('image/webp'),
      url('../background.jpeg') type('image/jpeg')
    );
    background-size: cover;
    background-position: center center;
    background-attachment: scroll;
    background-repeat: no-repeat;
  }

  html::before {
    background: rgba(0, 0, 0, 0.85);
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-color-scheme: light) {
  html::before {
    background: rgba(255, 255, 255, 0.85);
  }
}

body {
  font-family: 'B612', 'Courier New', Courier, monospace;
  line-height: 1.6;
  color: var(--text-color);
  background: transparent;
  max-width: 900px;
  margin: 0 auto;
  padding: 40px 20px;
  position: relative;
  z-index: 1;
}

body > * {
  position: relative;
  z-index: 1;
}

h1 {
  color: var(--title-color);
  border-bottom: 2px solid var(--plus-color);
  padding-bottom: 15px;
  margin-bottom: 10px;
  font-size: 2em;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 14px;
}

h1 .title-icon {
  width: 1.755em;
  height: 1.755em;
  flex-shrink: 0;
  border-radius: 18%;
  display: block;
}

h2 {
  color: var(--heading-color);
  margin-top: 0;
  margin-bottom: 15px;
  font-size: 1.4em;
  font-weight: 700;
}

.last-updated {
  color: var(--label-color);
  opacity: 0.7;
  font-size: 14px;
  font-style: italic;
  margin-bottom: 28px;
}

.section {
  margin-bottom: 24px;
}

.section p {
  margin-bottom: 12px;
}

.section p:last-child {
  margin-bottom: 0;
}

strong {
  color: var(--plus-color);
  font-weight: 700;
}

a {
  color: var(--plus-color);
  text-decoration: none;
}

a:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.contact {
  background-color: var(--section-bg);
  padding: 22px 24px;
  border-radius: 8px;
  margin-top: 36px;
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) auto minmax(0, 1fr);
  align-items: stretch;
  gap: 0;
}

.contact-left {
  padding-right: 28px;
  border-right: 1px solid var(--border-color);
}

.contact-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-right: 1px solid var(--border-color);
}

.store-qr {
  display: block;
  height: min(49vh, 196px);
  width: auto;
  max-width: 196px;
  object-fit: contain;
  background: #fff;
  border-radius: 8px;
  padding: 8px;
}

.contact-right {
  padding-left: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.85rem;
}

.contact-right p {
  margin: 0;
}

.contact-scan-note {
  color: var(--text-color);
}

.link-label {
  color: var(--text-color);
}

.support-form {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.7rem;
  margin-top: 0.85rem;
}

.support-form label {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  color: var(--text-color);
  font-size: 0.95rem;
}

.support-form input,
.support-form textarea {
  font: inherit;
  color: var(--text-color);
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.45rem 0.6rem;
}

.support-form button {
  align-self: flex-start;
  font: inherit;
  font-weight: 700;
  color: var(--plus-color);
  background: transparent;
  border: 1px solid var(--plus-color);
  border-radius: 8px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
}

.support-form button:hover {
  opacity: 0.85;
}

.support-status {
  color: var(--text-color);
  margin: 0;
}

.support-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.back-link {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.back-link a {
  font-size: 16px;
  font-weight: 700;
}

@media (max-width: 600px) {
  body {
    padding: 20px 15px;
  }

  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }

  .contact {
    grid-template-columns: 1fr;
  }

  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding-right: 0;
    padding-bottom: 20px;
    margin-bottom: 20px;
  }

  .contact-qr {
    border-right: none;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 0;
    margin-bottom: 20px;
  }

  .store-qr {
    height: min(35vw, 168px);
    max-width: min(35vw, 168px);
  }

  .contact-right {
    padding-left: 0;
  }
}
