.policy-section > .container { display: block; }

.policy-nav,
.policy-panel {
  max-width: 860px;
  margin-right: auto;
  margin-left: auto;
}

.policy-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 36px;
  padding: 0 0 20px;
  list-style: none;
  border-bottom: 1px solid #dce5e0;
}

.policy-tab {
  display: block;
  padding: 12px 18px;
  border: 1px solid #dce5e0;
  border-radius: 8px;
  color: #273e34;
  font-weight: 700;
  text-decoration: none;
}

.policy-tab:hover,
.policy-tab.is-active {
  background: var(--theme-bg-light);
  border-color: var(--theme-primary);
  color: #183b2c;
}

.policy-tab.is-active { box-shadow: inset 0 -3px var(--theme-primary); }
.policy-tab:focus-visible,
.policy-form :focus-visible {
  outline: 3px solid #245fcc;
  outline-offset: 3px;
}

.policy-notice,
.policy-form-feedback {
  padding: 18px 20px;
  margin: 24px 0;
  border: 1px solid #bdd9ca;
  border-radius: 10px;
  background: var(--theme-bg-light);
}

.policy-notice p:last-child { margin-bottom: 0; }
.policy-form-feedback[hidden] { display: none; }
.policy-form-feedback--success { background: #edf7f0; border-color: #8ebd9c; color: #204d2d; }
.policy-form-feedback--error { background: #fff3f1; border-color: #d99087; color: #862e26; }

.policy-form {
  position: relative;
  margin-top: 24px;
  padding: 28px;
  border: 1px solid #dce5e0;
  border-radius: 12px;
  background: #f8fbf9;
}

.policy-form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0 24px;
}

.policy-field { min-width: 0; margin-bottom: 22px; }
.policy-field > label { display: block; font-weight: 700; margin-bottom: 8px; }
.policy-field input:not([type="checkbox"]),
.policy-field select,
.policy-field textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid #9aaea3;
  border-radius: 6px;
  background: #fff;
  color: #273e34;
  font: inherit;
}

.policy-field textarea { resize: vertical; min-height: 120px; }
.policy-field [aria-invalid="true"] { border-color: #a93528; }
.policy-content .policy-form-help { margin-top: 8px; font-size: .9rem; line-height: 1.5; color: #526459; }
.policy-content .policy-field-error { margin: 8px 0 0; font-size: .9rem; color: #992d23; }
.policy-field > .policy-form-check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.policy-form-check input { flex: 0 0 20px; width: 20px; height: 20px; margin: 4px 0 0; }
.policy-form-submit {
  min-height: 48px;
  padding: 12px 24px;
  border: 0;
  border-radius: 7px;
  color: #fff;
  background: #147f57;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.policy-form-submit:hover { background: #106747; }
.policy-form-submit:disabled { opacity: .65; cursor: wait; }
.policy-form-restart { margin: 12px 0 0 16px; border: 0; background: none; color: #234d3a; font: inherit; text-decoration: underline; cursor: pointer; }
.policy-honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 640px) {
  .policy-tabs { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 24px; }
  .policy-tab { padding: 12px 14px; }
  .policy-form { padding: 20px 16px; }
  .policy-form-grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .policy-form-submit { width: 100%; }
  .policy-form-restart { margin-left: 0; }
}
