/* ==================================================
   SIDEHUSTLE LEGAL CENTER
   Replace public/css/legal-cookies-additions.css
   with this complete file.
================================================== */

.legal-center-hero .page-hero-content {
  max-width: 900px;
}

.legal-center-section {
  position: relative;
  background:
    radial-gradient(
      circle at 96% 7%,
      rgba(98, 165, 38, 0.11),
      transparent 29%
    ),
    radial-gradient(
      circle at 4% 94%,
      rgba(67, 135, 25, 0.07),
      transparent 27%
    ),
    #f6f9f4;
}

.legal-center-heading {
  max-width: 760px;
  margin: 0 auto 54px;
  text-align: center;
}

.legal-center-heading h2 {
  margin-top: 11px;
  color: #17251b;
  font-size: clamp(2.35rem, 4.7vw, 3.8rem);
  line-height: 1.06;
  letter-spacing: -0.055em;
}

.legal-center-heading p {
  margin-top: 17px;
  color: #667068;
  font-size: 1.04rem;
  line-height: 1.75;
}

.legal-options-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.legal-option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 355px;
  overflow: hidden;
  padding: 34px;
  color: #263229;
  background:
    linear-gradient(
      145deg,
      rgba(255, 255, 255, 0.99),
      rgba(248, 252, 246, 0.98)
    );
  border: 1px solid #dce7d9;
  border-radius: 25px;
  box-shadow:
    0 14px 38px rgba(24, 61, 6, 0.08),
    0 2px 8px rgba(24, 61, 6, 0.03);
  transition:
    transform 220ms ease,
    box-shadow 220ms ease,
    border-color 220ms ease;
}

.legal-option-card::before {
  content: "";
  position: absolute;
  width: 170px;
  height: 170px;
  top: -95px;
  right: -85px;
  background:
    radial-gradient(
      circle,
      rgba(98, 165, 38, 0.17),
      transparent 68%
    );
  border-radius: 50%;
  transition: transform 280ms ease;
}

.legal-option-card::after {
  content: "";
  position: absolute;
  inset: auto 34px 0;
  height: 4px;
  background:
    linear-gradient(
      90deg,
      #62a526,
      #8bc94a
    );
  border-radius: 999px 999px 0 0;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 220ms ease;
}

.legal-option-card:hover {
  color: #263229;
  border-color: #a8cd92;
  box-shadow:
    0 28px 62px rgba(24, 61, 6, 0.15),
    0 7px 18px rgba(24, 61, 6, 0.06);
  transform: translateY(-8px);
}

.legal-option-card:hover::before {
  transform: scale(1.16);
}

.legal-option-card:hover::after {
  transform: scaleX(1);
}

.legal-option-icon {
  position: relative;
  z-index: 1;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  color: #ffffff;
  background:
    linear-gradient(
      145deg,
      #62a526,
      #3f8117
    );
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 18px;
  box-shadow:
    0 13px 27px rgba(67, 135, 25, 0.25);
  font-size: 1.6rem;
  font-weight: 900;
}

.legal-option-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1;
  flex-direction: column;
  margin-top: 27px;
}

.legal-option-label {
  color: #438719;
  font-size: 0.71rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal-option-card h3 {
  margin-top: 10px;
  color: #17251b;
  font-size: 1.58rem;
  line-height: 1.2;
  letter-spacing: -0.035em;
}

.legal-option-card p {
  margin-top: 14px;
  color: #667068;
  font-size: 0.96rem;
  line-height: 1.72;
}

.legal-option-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 25px;
  color: #176f9b;
  font-size: 0.91rem;
  font-weight: 850;
}

.legal-option-link span {
  font-size: 1.05rem;
  transition: transform 180ms ease;
}

.legal-option-card:hover .legal-option-link span {
  transform: translateX(5px);
}

.legal-center-help {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  margin-top: 42px;
  padding: 38px 42px;
  color: #ffffff;
  background:
    radial-gradient(
      circle at 88% 20%,
      rgba(178, 231, 123, 0.25),
      transparent 29%
    ),
    linear-gradient(
      145deg,
      #153605,
      #397a14
    );
  border-radius: 25px;
  box-shadow: 0 24px 55px rgba(24, 61, 6, 0.18);
}

.legal-center-help .section-label {
  color: #b9ef85;
}

.legal-center-help h2 {
  margin-top: 8px;
  color: #ffffff;
  font-size: clamp(1.8rem, 3.5vw, 2.65rem);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.legal-center-help p {
  max-width: 720px;
  margin-top: 12px;
  color: #d8e8d1;
  line-height: 1.7;
}

.legal-center-help .button {
  flex: 0 0 auto;
  color: #214e09;
  background: #ffffff;
  box-shadow: 0 13px 28px rgba(0, 0, 0, 0.17);
}

/* Cookie document remains visually aligned with Terms. */

.cookie-document,
.terms-document {
  max-width: 900px;
  margin: 0 auto;
  color: #3e4a42;
}

.cookie-document-header,
.terms-document-header {
  margin-bottom: 42px;
  text-align: center;
}

.cookie-document-header h1,
.terms-document-header h1 {
  margin: 0 0 14px;
  color: #111827;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.cookie-document-date,
.terms-document-date {
  margin: 0 !important;
  color: #667068 !important;
  font-size: 0.95rem;
}

.cookie-document h2,
.terms-document h2 {
  margin: 42px 0 16px !important;
  color: #111827 !important;
  font-size: 1.35rem !important;
  line-height: 1.3;
  letter-spacing: 0;
  text-transform: uppercase;
}

.cookie-document p,
.terms-document p {
  margin: 0 0 20px;
  color: #4e5a52;
  font-size: 1rem;
  line-height: 1.78;
  text-align: left;
}

.cookie-document ul,
.terms-document ul {
  margin: 10px 0 24px 28px;
  padding-left: 18px;
  list-style: disc;
}

.cookie-document li,
.terms-document li {
  margin: 8px 0;
  padding-left: 4px;
  color: #4e5a52;
  line-height: 1.65;
}

.cookie-document li::marker,
.terms-document li::marker {
  color: #222222;
}

.cookie-document a,
.terms-document a {
  color: #176f9b;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1.4px;
  text-underline-offset: 3px;
}

.cookie-document a:hover,
.terms-document a:hover {
  color: #0d4f73;
}

@media (max-width: 980px) {
  .legal-options-grid {
    grid-template-columns: 1fr;
  }

  .legal-option-card {
    min-height: auto;
  }

  .legal-center-help {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .legal-center-heading {
    margin-bottom: 38px;
  }

  .legal-option-card {
    padding: 28px 25px;
    border-radius: 20px;
  }

  .legal-option-icon {
    width: 54px;
    height: 54px;
    border-radius: 15px;
  }

  .legal-center-help {
    padding: 31px 27px;
    border-radius: 20px;
  }

  .legal-center-help .button {
    width: 100%;
  }

  .cookie-document h2,
  .terms-document h2 {
    margin-top: 34px !important;
    font-size: 1.15rem !important;
  }

  .cookie-document p,
  .terms-document p {
    font-size: 0.96rem;
    line-height: 1.72;
  }
}
