/**
 * Pretty Mow'd Lawns - Terms of Use Policy Stylesheet
 */

.pml-policy-hero {
  background: var(--pml-heading);
  padding: 120px 0 60px;
  position: relative;
  overflow: hidden;
}

.pml-policy-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #1a3d1a 0%, #2d6a2d 60%, #3d8b3d 100%);
  opacity: 0.95;
}

.pml-policy-hero .container {
  position: relative;
  z-index: 1;
}

.pml-policy-hero .pml-section-label {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.2);
  color: var(--pml-green-light);
}

.pml-policy-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  color: #ffffff;
  margin-bottom: 16px;
}

.pml-policy-hero p {
  color: rgba(255,255,255,0.8);
  font-size: 1.05rem;
  max-width: 620px;
}

.pml-policy-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  padding: 8px 16px;
  font-family: var(--font-nav);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  margin-top: 20px;
}

.pml-policy-meta i {
  color: var(--pml-green-light);
}

/* Policy content area */
.pml-policy-content {
  padding: 70px 0 80px;
  background: var(--pml-white);
}

.pml-policy-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}

@media (max-width: 991px) {
  .pml-policy-layout {
    grid-template-columns: 1fr;
  }
  .pml-policy-toc {
    display: none;
  }
}

/* Table of contents sidebar */
.pml-policy-toc {
  position: sticky;
  top: 90px;
  background: var(--pml-off-white);
  border: 1px solid var(--pml-border);
  border-radius: 16px;
  padding: 24px;
}

.pml-policy-toc h3 {
  font-family: var(--font-nav);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--pml-text-muted);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--pml-border);
}

.pml-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pml-toc-list a {
  display: block;
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--pml-text-muted);
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  transition: all var(--transition);
  line-height: 1.4;
}

.pml-toc-list a:hover,
.pml-toc-list a.active {
  background: var(--pml-green-pale);
  color: var(--pml-green-dark);
}

/* Policy body */
.pml-policy-body {
  min-width: 0;
}

.pml-policy-section {
  margin-bottom: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--pml-border);
  scroll-margin-top: 90px;
}

.pml-policy-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.pml-policy-section h2 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--pml-heading);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pml-policy-section h2 .pml-section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--pml-green-pale);
  border: 1px solid var(--pml-border);
  border-radius: 50%;
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--pml-green-mid);
  flex-shrink: 0;
}

.pml-policy-section p {
  color: var(--pml-text);
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 14px;
}

.pml-policy-section p:last-child {
  margin-bottom: 0;
}

.pml-policy-section ul {
  padding-left: 0;
  list-style: none;
  margin-bottom: 14px;
}

.pml-policy-section ul li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.95rem;
  color: var(--pml-text);
  line-height: 1.75;
  margin-bottom: 8px;
  padding: 10px 14px;
  background: var(--pml-off-white);
  border-radius: 8px;
  border-left: 3px solid var(--pml-green-light);
}

.pml-policy-section ul li i {
  color: var(--pml-green-mid);
  font-size: 0.9rem;
  margin-top: 3px;
  flex-shrink: 0;
}

/* Contact card in policy */
.pml-policy-contact-card {
  background: var(--pml-green-pale);
  border: 1px solid var(--pml-border);
  border-radius: 16px;
  padding: 28px 32px;
  margin-top: 20px;
}

.pml-policy-contact-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--pml-heading);
  margin-bottom: 16px;
}

.pml-policy-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 10px;
  font-size: 0.92rem;
  color: var(--pml-text);
}

.pml-policy-contact-row:last-child {
  margin-bottom: 0;
}

.pml-policy-contact-row i {
  color: var(--pml-green-mid);
  font-size: 1rem;
  width: 20px;
  flex-shrink: 0;
}

.pml-policy-contact-row a {
  color: var(--pml-green-dark);
  font-weight: 600;
}

/* Highlight box */
.pml-policy-highlight {
  background: var(--pml-green-pale);
  border: 1px solid var(--pml-border);
  border-left: 4px solid var(--pml-green-mid);
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--pml-text);
  line-height: 1.7;
}

.pml-policy-highlight strong {
  color: var(--pml-green-dark);
}

/* Warning/notice highlight variant */
.pml-policy-notice {
  background: #fff8e1;
  border: 1px solid #ffe082;
  border-left: 4px solid #f9a825;
  border-radius: 0 10px 10px 0;
  padding: 18px 20px;
  margin: 20px 0;
  font-size: 0.92rem;
  color: var(--pml-text);
  line-height: 1.7;
}

.pml-policy-notice strong {
  color: #e65100;
}

/* Back to site link */
.pml-policy-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--pml-text-muted);
  text-decoration: none;
  margin-bottom: 32px;
  transition: color var(--transition);
}

.pml-policy-back:hover {
  color: var(--pml-green-mid);
}
