/* =====================================================================
   Shared styling for the "legal page" template:
   about-us, privacy-policy, terms-and-conditions, official-rules,
   support, unsubscribe, signup.
   Relies on the theme tokens defined in css/style.css :root
   ===================================================================== */

/* ---- compact top banner (nav + page title, no hero copy) ---- */
.legal-top-section {
  min-height: auto;
  background: linear-gradient(135deg, var(--color-navy-800) 0%, var(--color-navy-900) 100%);
  border-radius: 0 0 48px 48px;
  padding: 0 20px 48px;
  position: relative;
}

.page-title {
  color: var(--color-cream);
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 95%;
  margin: 8px auto 0;
}

.page-title::before,
.page-title::after {
  content: "";
  background: var(--color-cream);
  height: 1.2px;
  width: 40px;
  flex-shrink: 0;
}

.page-title span {
  margin: 0 16px;
}

.page-subtitle {
  color: var(--color-cream);
  opacity: .85;
  text-align: center;
  font-size: 16px;
  font-weight: 400;
  max-width: 560px;
  margin: 14px auto 0;
}

/* ---- content card ---- */
.content-wrapper {
  max-width: 1200px;
  width: calc(100% - 40px);
  margin: -40px auto 80px;
}

.legal-content-container {
  border-radius: 32px;
  background: var(--color-white);
  padding: 48px 20px 32px;
  box-shadow: 0 10px 30px rgba(15, 76, 74, 0.08);
}

.legal-inner p.title {
  margin-top: 0;
}

.legal-inner p {
  margin-top: 20px;
  line-height: 1.6;
  color: var(--color-text);
  font-size: 15px;
}

.legal-inner p.last-updated-text {
  color: var(--color-muted);
  font-size: 14px;
  margin-top: 0;
}

.legal-inner h2 {
  margin-top: 28px;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
  color: var(--color-navy-800);
}

.legal-inner ul {
  padding-left: 20px;
  margin-top: 12px;
}

.legalpages li {
  list-style: disc;
  margin-bottom: 8px;
  color: var(--color-text);
}

.legal-inner a {
  text-decoration: underline;
  color: var(--color-gold-600);
}

.legal-inner a:hover {
  color: var(--color-navy-800);
}

/* ---- generic form styling reused on support / signup ---- */
.contact-form {
  margin: 0 auto;
  max-width: 560px;
}

.child-row {
  margin-bottom: 16px;
}

.name-fields {
  display: flex;
  column-gap: 16px;
}

.name-fields .child-50 {
  width: 100%;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  min-height: 56px;
  height: auto;
  background: var(--color-white);
  padding: 0 20px;
  border-radius: 10px;
  box-shadow: 1.4px 1.4px 5.7px 0px rgba(0, 0, 0, 0.1);
  color: var(--color-muted);
  font-size: 16px;
  font-weight: 300;
  border: 1px solid rgba(15, 76, 74, 0.1);
}

.form-group select {
  background-image: url('data:image/svg+xml;charset=UTF-8,%3Csvg xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22 width%3D%2218%22 height%3D%2210%22 viewBox%3D%220 0 18 10%22 fill%3D%22none%22%3E%3Cpath d%3D%22M8.75 10L0 1.25V0H1.25L8.75 7.5L16.25 0H17.5V1.25L8.75 10Z%22 fill%3D%22%23A67821%22%2F%3E%3C%2Fsvg%3E');
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 13px 10px;
  appearance: none;
  cursor: pointer;
}

.form-group textarea {
  min-height: 150px;
  padding-top: 14px;
  resize: vertical;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: 2px solid var(--color-gold-500);
}

.form-group button {
  width: 100%;
  min-height: 58px;
  color: var(--color-navy-900);
  cursor: pointer;
  border-radius: 10px;
  border: none;
  background: var(--color-gold-500);
  transition: background-color 0.3s ease;
  font-size: 20px;
  font-weight: 700;
}

.form-group button:hover {
  background: var(--color-gold-600);
}

.form-group button:disabled {
  opacity: .6;
  cursor: not-allowed;
}

#showoptoutdesp {
  text-align: center;
  margin-top: 24px;
}

#showoptoutdesp h2 {
  color: var(--color-navy-800);
  font-size: 16px;
  font-weight: 600;
  margin-top: 0;
}

#showoptoutdesp .optoutdisc {
  color: var(--color-muted);
  font-size: 13px;
  margin-top: 8px;
}

/* ---- accordion (unsubscribe page) ---- */
.accordion {
  width: 100%;
}

.accordion-item-header {
  min-height: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  cursor: pointer;
  color: var(--color-navy-800);
  font-size: 20px;
  font-weight: 700;
  line-height: 24px;
  padding: 22px 0;
  border-bottom: 1px solid rgba(15, 76, 74, 0.12);
}

.accordion-item-header::after {
  content: "\002B";
  font-size: 28px;
  color: var(--color-gold-600);
  transition: transform 0.2s ease;
}

.accordion-item-header.active::after {
  transform: rotate(45deg);
}

.accordion-item-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.acc-items {
  margin-top: 20px;
  margin-bottom: 32px;
}

h3.acc-title {
  color: var(--color-navy-800);
  font-size: 16px;
  font-weight: 700;
}

h4.acc-subtitle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  margin: 16px 0 8px;
  color: var(--color-navy-700);
}

.acc-content {
  padding-left: 0;
}

.acc-inner-content {
  display: flex;
  gap: 10px;
  margin: 10px auto;
  align-items: flex-start;
}

p.steps {
  flex-shrink: 0;
  min-width: 56px;
  height: 24px;
  border-radius: 4px;
  background: var(--color-gold-500);
  color: var(--color-white);
  font-weight: 600;
  line-height: 18px;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}

p.desp {
  word-break: break-word;
  color: var(--color-text);
  font-size: 14px;
}

.acc-item-body-inner-content {
  border-bottom: 1px solid rgba(15, 76, 74, 0.12);
  margin-bottom: 32px;
  padding-bottom: 8px;
}

.acc-item-body-inner-content:last-child {
  border: none;
  margin-bottom: 0;
}

.unsub-copy {
  color: var(--color-muted);
  text-align: center;
  font-size: 13px;
  line-height: 18px;
  display: block;
  margin: 48px auto 0;
}

@media screen and (min-width: 921px) {
  .legal-top-section {
    padding: 0 20px 64px;
  }

  .page-title {
    font-size: 32px;
  }

  .legal-content-container {
    padding: 64px 48px 48px;
  }

  .content-wrapper {
    margin: -56px auto 100px;
  }

  .name-fields {
    column-gap: 24px;
  }

  .form-group input,
  .form-group textarea,
  .form-group select {
    min-height: 64px;
    font-size: 18px;
  }

  .form-group button {
    min-height: 64px;
    font-size: 22px;
  }
}

@media screen and (max-width: 600px) {
  .name-fields {
    flex-direction: column;
  }
}
