[hidden] {
  display: none !important;
}

.privacy-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f9fb, #eaf1f6);
}

.privacy-header {
  min-height: 92px;
  padding: 8px clamp(20px, 5vw, 56px);
  border-bottom: 4px solid var(--lime);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 4px 18px rgba(16, 76, 130, 0.08);
}

.privacy-header .brand img {
  width: 104px;
  height: 72px;
  object-fit: contain;
  object-position: left center;
}

.privacy-back {
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-underline-offset: 3px;
}

.privacy-layout {
  width: min(980px, calc(100% - 40px));
  margin: 38px auto 56px;
}

.privacy-document {
  padding: clamp(28px, 6vw, 60px);
  border: 1px solid var(--line);
  border-top: 5px solid var(--lime);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(16, 76, 130, 0.1);
}

.privacy-title {
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.privacy-title h1 {
  max-width: 780px;
  margin: 12px 0 14px;
  color: var(--blue-dark);
  font-size: clamp(32px, 5vw, 48px);
  line-height: 1.08;
}

.privacy-title > p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.privacy-title .privacy-version {
  margin-top: 16px;
  color: var(--ink);
  font-size: 12px;
}

.privacy-index {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 28px 0 34px;
}

.privacy-index a {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--blue);
  background: var(--ice);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.privacy-document section {
  scroll-margin-top: 24px;
  margin-top: 34px;
}

.privacy-document h2 {
  margin: 0 0 12px;
  color: var(--blue-dark);
  font-size: 21px;
  line-height: 1.25;
}

.privacy-document p,
.privacy-document li,
.privacy-document td,
.privacy-document th {
  font-size: 14px;
  line-height: 1.7;
}

.privacy-document p {
  margin: 10px 0;
}

.privacy-document ul {
  margin: 12px 0;
  padding-left: 22px;
}

.privacy-document li + li {
  margin-top: 7px;
}

.privacy-document a {
  color: var(--blue);
  font-weight: 700;
  text-underline-offset: 3px;
}

.privacy-callout {
  padding: 16px 18px;
  border-left: 4px solid var(--lime);
  border-radius: 0 7px 7px 0;
  background: #f2f7e8;
}

.privacy-table-wrap {
  overflow-x: auto;
  margin: 14px 0 18px;
}

.privacy-document table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
}

.privacy-document th,
.privacy-document td {
  padding: 13px 15px;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.privacy-document th {
  color: var(--blue-dark);
  background: var(--ice);
  font-size: 12px;
}

.privacy-links {
  padding-top: 4px;
}

.privacy-footer {
  padding: 24px clamp(20px, 5vw, 56px);
  color: #d6e5f2;
  background: var(--blue-dark);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 11px;
}

.privacy-footer a {
  color: var(--white);
  font-weight: 800;
}

@media (max-width: 640px) {
  .privacy-header {
    min-height: 76px;
  }

  .privacy-header .brand img {
    width: 84px;
    height: 58px;
  }

  .privacy-layout {
    width: min(100% - 24px, 980px);
    margin: 20px auto 32px;
  }

  .privacy-document {
    padding: 26px 20px;
  }

  .privacy-footer {
    flex-direction: column;
  }
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 10px;
  z-index: 1000;
  transform: translateY(-150%);
  padding: 10px 14px;
  border-radius: 6px;
  background: var(--blue-dark);
  color: var(--white);
  font-weight: 700;
}

.required-mark {
  color: var(--muted);
  font-size: 0.8em;
  font-weight: 500;
}

[aria-invalid="true"] {
  border-color: var(--danger, #a4262c) !important;
  box-shadow: 0 0 0 2px rgba(164, 38, 44, 0.12);
}

.skip-link:focus {
  transform: translateY(0);
}

.noscript-message {
  padding: 16px;
  background: #fff2cc;
  color: #5a4300;
  text-align: center;
}

.gate-screen {
  min-height: 100vh;
  background: linear-gradient(180deg, #f6f9fb, #eaf1f6);
}

.gate-layout {
  min-height: calc(100vh - 92px);
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
}

.gate-brand-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(42px, 8vw, 110px);
  color: var(--white);
  background: linear-gradient(155deg, var(--blue) 0%, var(--blue-deep) 63%, var(--blue-dark) 100%);
  position: relative;
  overflow: hidden;
}

.gate-brand-panel::after {
  content: "";
  position: absolute;
  width: 330px;
  height: 330px;
  border: 48px solid rgba(149, 193, 31, 0.12);
  border-radius: 50%;
  right: -190px;
  bottom: 40px;
}

.gate-brand-panel img {
  width: 88px;
  height: 94px;
  object-fit: contain;
  object-position: left center;
  margin-bottom: 34px;
  position: relative;
  z-index: 1;
}

.gate-brand-panel h1 {
  max-width: 580px;
  margin: 14px 0;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.04;
  position: relative;
  z-index: 1;
}

.gate-brand-panel p {
  max-width: 560px;
  margin: 0;
  color: #d6e5f2;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.gate-card {
  align-self: center;
  justify-self: center;
  width: min(470px, calc(100% - 48px));
  padding: 42px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--lime);
  border-radius: 12px;
  background: var(--white);
  box-shadow: 0 18px 52px rgba(16, 76, 130, 0.12);
}

.gate-card h2 {
  color: var(--blue-dark);
  font-size: 30px;
  line-height: 1.12;
  margin: 8px 0 10px;
}

.gate-card > p:not(.form-message, .config-message) {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.gate-code-label {
  display: block;
  margin-top: 28px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #526b7e;
}

.gate-code {
  width: 100%;
  margin: 8px 0 6px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue-dark);
  font-size: 25px;
  font-weight: 750;
  letter-spacing: 0.4em;
  text-align: center;
}

.gate-code:focus,
.field-grid select:focus,
.privacy-acknowledgement input:focus-visible {
  outline: 3px solid rgba(29, 98, 162, 0.22);
  outline-offset: 2px;
  border-color: var(--blue);
}

.gate-card small {
  display: block;
  color: var(--muted);
  font-size: 10px;
}

.turnstile-slot {
  min-height: 67px;
  margin: 20px 0 10px;
}

.gate-submit,
.submit-button {
  width: 100%;
}

.form-message,
.config-message {
  min-height: 20px;
  margin: 8px 0;
  font-size: 12px;
  line-height: 1.45;
}

.error-message,
.form-message.is-error,
.config-message {
  color: #a1261c;
}

.form-message.is-success {
  color: #e5f7b5;
}

.config-message:empty,
.form-message:empty {
  min-height: 0;
  margin: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.choice:focus-within,
.tag:focus-within,
.file-box:focus-within {
  outline: 3px solid rgba(29, 98, 162, 0.28);
  outline-offset: 3px;
}

fieldset {
  min-width: 0;
  margin-inline: 0;
  border: 0;
}

.question,
.subsection {
  margin-inline: 0;
}

.question > legend,
.subsection > legend {
  width: 100%;
  padding: 0;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 700;
}

.question > legend + .question-note,
.subsection > legend + p {
  margin-top: 7px;
}

.choice,
.tag {
  position: relative;
}

.choice-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.choice:has(.choice-input:checked),
.choice.selected {
  border-color: var(--blue);
  background: #eef6fc;
  box-shadow: inset 0 0 0 1px var(--blue);
}

.choice-input:checked + .radio-dot,
.choice-input:checked + .check-box {
  border-color: var(--blue);
}

.choice-input:checked + .radio-dot::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--blue);
}

.choice-input:checked + .check-box {
  background: var(--blue);
}

.choice-input:checked + .check-box::after {
  content: "✓";
  color: var(--white);
  font-size: 11px;
  font-weight: 900;
}

.tag:has(.choice-input:checked),
.tag.selected {
  border-color: var(--blue);
  background: var(--blue);
  color: var(--white);
}

.field-grid select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  padding: 12px 13px;
  color: var(--ink);
}

.file-box {
  position: relative;
}

.file-box input {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.file-box.has-file .file-mark {
  color: var(--lime-dark);
  background: #f0f7e1;
}

.file-status-list {
  display: grid;
  gap: 7px;
  margin: 8px 0 16px;
  padding: 0;
  list-style: none;
}

.file-status-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-radius: 6px;
  background: #f3f7fa;
  color: var(--muted);
  font-size: 10px;
}

.file-status-list strong {
  overflow: hidden;
  color: var(--ink);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-status-list progress {
  grid-column: 1 / -1;
  width: 100%;
}

.file-status-list .is-confirmed {
  color: var(--lime-dark);
}

.file-status-list .is-error {
  color: #a1261c;
}

.investment-card {
  grid-template-columns: 38px 2fr 1.2fr 0.7fr 1.2fr;
  margin: 0;
}

.investment-card.future {
  grid-template-columns: 38px 2fr 1.2fr 0.8fr;
}

.investment-card .item-count {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.investment-card::before {
  content: attr(data-number);
  align-self: center;
  color: var(--blue);
  font-weight: 800;
  opacity: 0.45;
}

.remove-button {
  grid-column: 2 / -1;
  justify-self: end;
  align-self: end;
  min-height: 34px;
  padding: 7px 12px;
  border: 1px solid #d8a39e;
  border-radius: 6px;
  background: var(--white);
  color: #8d2c24;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
}

.remove-button:hover {
  background: #fff4f3;
}

.progress-row progress {
  width: 100%;
  height: 7px;
  border: 0;
  border-radius: 5px;
  background: #dbe5ed;
  overflow: hidden;
}

.progress-row progress::-webkit-progress-bar {
  background: #dbe5ed;
}

.progress-row progress::-webkit-progress-value {
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

.progress-row progress::-moz-progress-bar {
  background: linear-gradient(90deg, var(--blue), var(--lime));
}

.privacy-acknowledgement {
  display: flex;
  justify-content: center;
  gap: 9px;
  align-items: flex-start;
  max-width: 650px;
  margin: 18px auto;
  color: #e5edf4;
  font-size: 11px;
  line-height: 1.5;
  text-align: left;
}

.privacy-acknowledgement input {
  width: 18px;
  height: 18px;
  margin: 0;
  flex: 0 0 auto;
}

.privacy-acknowledgement a {
  color: var(--white);
  font-weight: 800;
}

.turnstile-on-dark {
  display: flex;
  justify-content: center;
}

.retry-uploads {
  margin-top: 10px;
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.5);
}

.retry-uploads:hover {
  color: var(--blue-dark);
  background: var(--white);
}

.primary-button:disabled,
.soft-button:disabled,
.submit-button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.submission-reference {
  display: block;
  margin: 12px auto;
  color: var(--white);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

@media (max-width: 1050px) {
  .investment-card,
  .investment-card.future {
    grid-template-columns: 32px 1fr 1fr;
  }

  .investment-card label:first-of-type {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .gate-layout {
    grid-template-columns: 1fr;
  }

  .gate-brand-panel {
    min-height: 300px;
    padding: 42px 28px;
  }

  .gate-brand-panel img {
    display: none;
  }

  .gate-card {
    margin: 32px auto;
  }

}

@media (max-width: 760px) {
  .gate-screen .topbar .secure {
    display: inline-block;
  }

  .gate-layout {
    min-height: calc(100vh - 76px);
  }

  .gate-brand-panel {
    min-height: 230px;
  }

  .gate-brand-panel h1 {
    font-size: 34px;
  }

  .gate-card {
    width: calc(100% - 32px);
    padding: 28px 22px;
  }

  .gate-card h2 {
    font-size: 25px;
  }

  .investment-card,
  .investment-card.future {
    grid-template-columns: 28px 1fr;
  }

  .investment-card label,
  .investment-card label:first-of-type,
  .remove-button {
    grid-column: 2;
  }

  .top-actions {
    gap: 8px;
  }

  #change-code {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
