.nsd-legal-page {
  color: #1f2a44;
  margin: 0 auto 2rem;
  max-width: 1240px;
  padding: 0 1rem;
}

.nsd-legal-hero {
  background: #f5fbff;
  border: 1px solid #e4ecf7;
  border-top: 5px solid #009fe3;
  margin: 1rem 0;
  padding: 1.6rem;
}

.nsd-legal-hero-return {
  border-top-color: #d71920;
}

.nsd-legal-hero p {
  color: #009fe3;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  margin: 0 0 0.35rem;
  text-transform: uppercase;
}

.nsd-legal-hero h1 {
  color: #1f2a44;
  font-size: 2rem;
  font-weight: 900;
  line-height: 1.1;
  margin: 0 0 0.5rem;
}

.nsd-legal-hero span {
  color: #65748a;
  display: block;
  font-size: 0.9rem;
}

.nsd-legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.nsd-legal-tabs a {
  background: #ffffff;
  border: 1px solid #e4ecf7;
  color: #1f2a44;
  font-weight: 800;
  padding: 0.65rem 0.9rem;
  text-decoration: none;
}

.nsd-legal-tabs a.active,
.nsd-legal-tabs a:hover,
.nsd-legal-tabs a:focus {
  background: #d71920;
  border-color: #d71920;
  color: #ffffff;
}

.nsd-legal-layout {
  align-items: flex-start;
  display: grid;
  gap: 1.2rem;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
}

.nsd-legal-summary {
  background: #1f2a44;
  color: #ffffff;
  position: sticky;
  top: 1rem;
  padding: 1rem;
}

.nsd-legal-summary strong {
  display: block;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.nsd-legal-summary ul {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
}

.nsd-legal-summary li {
  margin-bottom: 0.55rem;
}

.nsd-legal-content {
  background: #ffffff;
  border: 1px solid #e4ecf7;
  padding: 1.4rem;
}

.nsd-legal-single {
  margin: 0 auto;
  max-width: 980px;
}

.nsd-legal-content h2 {
  color: #1f2a44;
  font-size: 1.25rem;
  font-weight: 900;
  margin: 1.4rem 0 0.65rem;
}

.nsd-legal-content h2:first-child {
  margin-top: 0;
}

.nsd-legal-content p,
.nsd-legal-content li,
.nsd-legal-table {
  color: #334155;
  font-size: 0.96rem;
  line-height: 1.58;
}

.nsd-legal-content a {
  color: #d71920;
  font-weight: 800;
}

.nsd-legal-table-wrap {
  overflow-x: auto;
}

.nsd-legal-table {
  border-collapse: collapse;
  margin: 0.8rem 0 1rem;
  min-width: 640px;
  width: 100%;
}

.nsd-legal-table th {
  background: #1f2a44;
  color: #ffffff;
  font-weight: 900;
  text-align: left;
}

.nsd-legal-table th,
.nsd-legal-table td {
  border: 1px solid #e4ecf7;
  padding: 0.75rem;
  vertical-align: top;
}

.nsd-legal-alert,
.nsd-legal-success,
.nsd-legal-errors {
  border: 1px solid #e4ecf7;
  margin: 1rem 0;
  padding: 1rem;
}

.nsd-legal-alert {
  background: #fff8df;
  border-color: #ffc400;
}

.nsd-legal-success {
  background: #effdf4;
  border-color: #25d366;
}

.nsd-legal-errors {
  background: #fff1f2;
  border-color: #d71920;
}

.nsd-legal-alert strong,
.nsd-legal-success h2,
.nsd-legal-errors strong {
  color: #1f2a44;
  font-weight: 900;
}

.nsd-legal-button {
  align-items: center;
  background: #d71920;
  border: 0;
  color: #ffffff !important;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 44px;
  padding: 0.75rem 1rem;
  text-decoration: none !important;
}

.nsd-legal-button:hover,
.nsd-legal-button:focus {
  background: #1f2a44;
}

.nsd-return-form {
  background: #f7fbff;
  border: 1px solid #e4ecf7;
  margin-top: 1.2rem;
  padding: 1rem;
}

.nsd-form-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.nsd-return-form label {
  display: block;
  margin-bottom: 0.85rem;
}

.nsd-return-form label span {
  color: #1f2a44;
  display: block;
  font-weight: 900;
  margin-bottom: 0.35rem;
}

.nsd-return-form input,
.nsd-return-form select,
.nsd-return-form textarea {
  background: #ffffff;
  border: 1px solid #dbe5f1;
  color: #1f2a44;
  display: block;
  min-height: 44px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.nsd-return-form textarea {
  resize: vertical;
}

.nsd-form-check {
  align-items: flex-start;
  display: flex !important;
  gap: 0.65rem;
}

.nsd-form-check input {
  flex: 0 0 auto;
  margin-top: 0.2rem;
  min-height: auto;
  width: auto;
}

.nsd-form-check span {
  margin-bottom: 0 !important;
}

.nsd-legal-footer ul {
  margin-bottom: 0;
}

.nsd-legal-footer a {
  color: inherit;
}

@media (min-width: 768px) {
  .nsd-legal-footer ul.collapse {
    display: block;
  }
}

@media (max-width: 767px) {
  .nsd-legal-page {
    padding: 0 0.75rem;
  }

  .nsd-legal-hero {
    padding: 1.15rem;
  }

  .nsd-legal-hero h1 {
    font-size: 1.55rem;
  }

  .nsd-legal-layout,
  .nsd-form-grid {
    grid-template-columns: 1fr;
  }

  .nsd-legal-summary {
    position: static;
  }

  .nsd-legal-content {
    padding: 1rem;
  }

  .nsd-legal-tabs a {
    flex: 1 1 calc(50% - 0.55rem);
    text-align: center;
  }
}
