.compliance-page {
  background: #f7f8f6;
  color: #1b1b1e;
}

.compliance-main {
  width: min(calc(100% - 32px), 1040px);
  margin: 32px auto 64px;
}

.content-hero {
  padding: 32px;
  color: #ffffff;
  background: #173f32;
  border-left: 6px solid #e76f51;
  border-radius: 8px;
}

.content-hero .eyebrow {
  margin: 0 0 8px;
  color: #bfe7cf;
  font-size: 13px;
  font-weight: 800;
}

.content-hero h1 {
  margin: 0;
  font-size: clamp(30px, 5vw, 42px);
  line-height: 1.2;
}

.content-hero p {
  max-width: 760px;
  margin: 12px 0 0;
  color: #e4f0e9;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 250px;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.content-stack,
.contact-list,
.policy-list,
.flow-list,
.faq-list {
  display: grid;
  gap: 16px;
}

.content-section,
.contact-panel,
.notice-panel,
.complaint-form {
  min-width: 0;
  padding: 24px;
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 8px;
}

.content-section h2,
.contact-panel h2,
.complaint-form h2 {
  margin: 0 0 14px;
  color: #173f32;
  font-size: 23px;
  line-height: 1.3;
}

.content-section h3 {
  margin: 22px 0 8px;
  color: #2d533f;
  font-size: 17px;
}

.content-section p,
.contact-panel p,
.notice-panel p {
  margin: 8px 0;
}

.content-section a,
.contact-panel a,
.notice-panel a {
  color: #216847;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.policy-list,
.flow-list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.policy-list li,
.flow-list li {
  min-width: 0;
  padding: 14px 16px;
  background: #f4f8f5;
  border-left: 4px solid #2d6a4f;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.policy-list.warning li {
  background: #fff7f2;
  border-left-color: #d65b3d;
}

.flow-list {
  counter-reset: flow;
}

.flow-list li {
  counter-increment: flow;
}

.flow-list li::before {
  content: counter(flow);
  display: inline-grid;
  width: 26px;
  height: 26px;
  margin-right: 10px;
  place-items: center;
  color: #ffffff;
  background: #2d6a4f;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 800;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.info-block {
  min-width: 0;
  padding: 18px;
  background: #f4f8f5;
  border-top: 3px solid #2d6a4f;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.info-block h3 {
  margin-top: 0;
}

.notice-panel {
  background: #fff8e8;
  border-color: #efd99c;
}

.contact-panel {
  position: sticky;
  top: 88px;
  border-top: 4px solid #e76f51;
}

.contact-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  overflow-wrap: anywhere;
}

.table-wrap {
  max-width: 100%;
  margin-top: 14px;
  overflow-x: auto;
}

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

.policy-table th,
.policy-table td {
  padding: 12px;
  border: 1px solid #dfe7e2;
  text-align: left;
  vertical-align: top;
}

.policy-table th {
  color: #173f32;
  background: #eaf3ed;
}

.faq-list details {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #dfe7e2;
  border-radius: 6px;
}

.faq-list summary {
  color: #173f32;
  cursor: pointer;
  font-weight: 800;
}

.faq-list details p {
  margin: 12px 0 0;
}

.complaint-form {
  margin-top: 24px;
}

.complaint-form .form-field label,
.complaint-form legend {
  color: #173f32;
  font-weight: 800;
}

.complaint-form textarea {
  min-height: 150px;
  resize: vertical;
}

.consent-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 16px 0;
}

.consent-field input {
  width: auto;
  margin-top: 6px;
}

.complaint-status {
  min-height: 26px;
  margin: 14px 0 0;
  padding: 10px 12px;
  color: #173f32;
  background: #eaf3ed;
  border-radius: 6px;
  overflow-wrap: anywhere;
}

.complaint-status[data-state="error"] {
  color: #8f2f20;
  background: #fff0ec;
}

.document-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 12px 0 0;
  color: #53615b;
  font-size: 14px;
}

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

  .contact-panel {
    position: static;
  }
}

@media (max-width: 520px) {
  .compliance-main {
    width: min(calc(100% - 24px), 1040px);
    margin-top: 18px;
  }

  .content-hero,
  .content-section,
  .contact-panel,
  .notice-panel,
  .complaint-form {
    padding: 18px;
  }

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

  .policy-list li,
  .flow-list li {
    padding: 12px;
  }
}
