/* ============================================
   WEBPHISER - LEGAL / POLICY PAGES
   Shared styles for Terms, Privacy, Refund,
   Delivery, Disclaimer, Cookies, Contact, Pricing
   ============================================ */

/* ---------- PAGE HEADER ---------- */
.legal-hero {
  position: relative;
  padding: calc(var(--nav-height) + 72px) 0 56px;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.legal-hero__glow {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 720px;
  height: 360px;
  background: radial-gradient(ellipse at center, var(--blue-glow) 0%, transparent 70%);
  pointer-events: none;
}

.legal-hero__inner {
  position: relative;
  max-width: 860px;
}

.legal-hero__title {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 800;
  color: var(--white);
  line-height: 1.15;
  margin: 16px 0 14px;
}

.legal-hero__desc {
  font-size: 17px;
  color: var(--gray-300);
  line-height: 1.7;
  max-width: 680px;
}

.legal-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
  margin-top: 24px;
  font-size: 14px;
  color: var(--gray-400);
}

.legal-hero__meta strong {
  color: var(--gray-200);
  font-weight: 600;
}

/* ---------- BREADCRUMB ---------- */
.legal-crumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-400);
}

.legal-crumb a:hover {
  color: var(--blue);
}

.legal-crumb span {
  color: var(--gray-600);
}

/* ---------- LAYOUT ---------- */
.legal-body {
  padding: 64px 0 96px;
}

.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 56px;
  align-items: start;
}

/* ---------- TABLE OF CONTENTS ---------- */
.legal-toc {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 22px;
}

.legal-toc__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 14px;
}

.legal-toc ol {
  list-style: none;
  counter-reset: toc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.legal-toc a {
  display: block;
  font-size: 14px;
  line-height: 1.45;
  color: var(--gray-300);
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  border-left: 2px solid transparent;
  transition: var(--transition);
}

.legal-toc a:hover {
  color: var(--white);
  background: var(--bg-card-hover);
  border-left-color: var(--blue);
}

/* ---------- CONTENT ---------- */
.legal-content {
  max-width: 800px;
}

.legal-section {
  margin-bottom: 44px;
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.legal-section:last-child {
  margin-bottom: 0;
}

.legal-section h2 {
  font-size: 23px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.legal-section h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-100);
  margin: 26px 0 10px;
}

.legal-section p {
  font-size: 15.5px;
  line-height: 1.8;
  color: var(--gray-300);
  margin-bottom: 14px;
}

.legal-section p:last-child,
.legal-section ul:last-child,
.legal-section ol:last-child {
  margin-bottom: 0;
}

.legal-section a:not(.btn) {
  color: var(--blue);
  border-bottom: 1px solid rgba(0, 168, 255, 0.3);
  transition: var(--transition);
}

.legal-section a:not(.btn):hover {
  color: var(--blue-light);
  border-bottom-color: var(--blue-light);
}

.legal-section strong {
  color: var(--gray-100);
  font-weight: 600;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.legal-section li {
  font-size: 15.5px;
  line-height: 1.75;
  color: var(--gray-300);
  padding-left: 6px;
}

.legal-section li::marker {
  color: var(--blue);
}

/* ---------- CALLOUT / NOTE ---------- */
.legal-note {
  border: 1px solid rgba(0, 168, 255, 0.22);
  background: rgba(0, 168, 255, 0.05);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin: 20px 0;
}

.legal-note p {
  margin-bottom: 0;
  font-size: 15px;
  color: var(--gray-200);
}

.legal-note__label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--blue);
  margin-bottom: 8px;
}

/* ---------- BUSINESS IDENTITY CARD ---------- */
.legal-entity {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 26px 28px;
  margin-bottom: 44px;
}

.legal-entity__title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--blue);
  margin-bottom: 18px;
}

.legal-entity__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px 32px;
}

.legal-entity__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.legal-entity__label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
}

.legal-entity__value {
  font-size: 15px;
  line-height: 1.6;
  color: var(--gray-100);
  font-weight: 500;
}

.legal-entity__value a {
  color: var(--gray-100);
  transition: var(--transition);
}

.legal-entity__value a:hover {
  color: var(--blue);
}

/* NOTE: the .fill-me placeholder marker lives in styles.css,
   because index.html and edu.html use it too and do not load this file. */

/* ---------- TABLES ---------- */
.legal-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin: 20px 0;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.legal-table th,
.legal-table td {
  text-align: left;
  padding: 14px 18px;
  font-size: 14.5px;
  line-height: 1.6;
  border-bottom: 1px solid var(--border);
}

.legal-table th {
  background: var(--bg-elevated);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  white-space: nowrap;
}

.legal-table td {
  color: var(--gray-300);
}

.legal-table tr:last-child td {
  border-bottom: none;
}

.legal-table tbody tr:hover td {
  background: var(--bg-card-hover);
}

/* ---------- CONTACT PAGE ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 56px;
}

.contact-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 28px;
  transition: var(--transition);
}

.contact-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
}

.contact-card__icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0, 168, 255, 0.08);
  color: var(--blue);
  margin-bottom: 18px;
}

.contact-card__icon svg {
  width: 22px;
  height: 22px;
}

.contact-card__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 8px;
}

.contact-card__value {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--gray-300);
}

.contact-card__value a {
  color: var(--blue);
  transition: var(--transition);
}

.contact-card__value a:hover {
  color: var(--blue-light);
}

.contact-card__note {
  font-size: 13.5px;
  color: var(--gray-400);
  margin-top: 10px;
}

/* ---------- PRICING PAGE ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  padding: 30px 26px;
  transition: var(--transition);
}

.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
}

.price-card--featured {
  border-color: rgba(0, 168, 255, 0.35);
  background: linear-gradient(180deg, rgba(0, 168, 255, 0.06), var(--bg-card) 55%);
}

.price-card__tag {
  position: absolute;
  top: -11px;
  left: 26px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--black);
  background: var(--blue);
  padding: 4px 12px;
  border-radius: 100px;
}

.price-card__audience {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--blue);
  margin-bottom: 10px;
}

.price-card__title {
  font-size: 20px;
  font-weight: 700;
  color: var(--white);
  line-height: 1.3;
  margin-bottom: 10px;
}

.price-card__desc {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--gray-300);
  margin-bottom: 22px;
}

.price-card__amount {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.price-card__figure {
  font-size: 30px;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
}

.price-card__unit {
  font-size: 14px;
  color: var(--gray-400);
}

.price-card__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 26px;
  flex-grow: 1;
}

.price-card__list li {
  position: relative;
  padding-left: 26px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--gray-300);
}

.price-card__list li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--blue);
  font-weight: 700;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 960px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .legal-toc {
    position: static;
    padding: 20px;
  }

  .legal-toc ol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2px 12px;
  }
}

@media (max-width: 640px) {
  .legal-hero {
    padding: calc(var(--nav-height) + 48px) 0 40px;
  }

  .legal-body {
    padding: 44px 0 72px;
  }

  .legal-entity {
    padding: 22px 20px;
  }

  .legal-section h2 {
    font-size: 20px;
  }

  .legal-section p,
  .legal-section li {
    font-size: 15px;
  }
}
