/*
Theme Name: HPM SEO Theme
Theme URI: https://halfpricemattresstx.com/
Author: Codex
Description: Code-first custom theme for the new Half Price Mattress homepage and future SEO landing pages.
Version: 1.0.0
Text Domain: hpm-seo-theme
*/

html {
  margin-top: 0 !important;
}

body.admin-bar .navbar {
  top: 32px;
}

.legal-page {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(146, 208, 80, 0.14), transparent 26%),
    radial-gradient(circle at top right, rgba(5, 61, 112, 0.1), transparent 32%),
    linear-gradient(180deg, #f4f8fc 0%, #ffffff 100%);
  padding: 128px 24px 88px;
}

.legal-page__inner {
  max-width: 940px;
  margin: 0 auto;
}

.legal-page__article {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(210, 223, 237, 0.9);
  border-radius: 30px;
  box-shadow: 0 24px 60px rgba(5, 61, 112, 0.12);
  backdrop-filter: blur(10px);
  color: #16324f;
  padding: 44px 40px;
}

.legal-page__article::before {
  content: '';
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 6px;
  background: linear-gradient(90deg, #92d050 0%, #53b7f2 50%, #053d70 100%);
  border-radius: 30px 30px 0 0;
}

.legal-page__hero {
  padding: 8px 0 4px;
}

.legal-page__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(146, 208, 80, 0.12);
  color: #4b8f18;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-page__lede {
  max-width: 700px;
  margin: 0 0 24px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: #55708c;
}

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

.legal-page__meta-item {
  padding: 18px 18px 16px;
  border: 1px solid #d9e6f1;
  border-radius: 18px;
  background: linear-gradient(180deg, #f9fcff 0%, #f2f8fe 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.legal-page__meta-label {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6c86a1;
}

.legal-page__meta-value {
  color: #053d70;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.legal-page__title {
  color: #053d70;
  font-size: clamp(2.25rem, 5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
  max-width: 760px;
}

.legal-page__section {
  position: relative;
  padding-left: 20px;
}

.legal-page__section::before {
  content: '';
  position: absolute;
  top: 6px;
  left: 0;
  width: 4px;
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(180deg, #92d050 0%, #053d70 100%);
  opacity: 0.8;
}

.legal-page h2 {
  color: #053d70;
  font-size: 1.45rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.legal-page p,
.legal-page li {
  font-size: 1rem;
  line-height: 1.8;
}

.legal-page p,
.legal-page ul {
  margin: 0 0 18px;
}

.legal-page ul {
  padding-left: 0;
  list-style: none;
}

.legal-page li {
  position: relative;
  padding-left: 22px;
}

.legal-page li + li {
  margin-top: 10px;
}

.legal-page li::before {
  content: '';
  position: absolute;
  top: 0.8em;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #92d050;
  box-shadow: 0 0 0 4px rgba(146, 208, 80, 0.18);
}

.legal-page hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(146, 208, 80, 0), rgba(146, 208, 80, 0.7), rgba(5, 61, 112, 0.45), rgba(5, 61, 112, 0));
  margin: 30px 0;
}

.legal-page a {
  color: #0279ff;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media screen and (max-width: 782px) {
  body.admin-bar .navbar {
    top: 46px;
  }

  .legal-page {
    padding: 110px 16px 60px;
  }

  .legal-page__article {
    border-radius: 22px;
    padding: 30px 22px;
  }

  .legal-page__article::before {
    border-radius: 22px 22px 0 0;
  }

  .legal-page__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .legal-page__section {
    padding-left: 16px;
  }

  .legal-page__title {
    font-size: clamp(2rem, 10vw, 2.6rem);
  }
}
