/* ═══════════════════════════════════════════════════════
   LEGAL PAGES — Professional Design
   Terms & Conditions, Privacy Policy
═══════════════════════════════════════════════════════ */

/* ════════ HERO SECTION ════════ */
.legal-hero {
  position: relative;
  background: var(--navy-2);
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 88px;
  overflow: hidden;
}

.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("../assets/samsung-taylor-hero.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.18;
}

.legal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(16, 35, 56, 0.85) 0%, rgba(27, 54, 82, 0.92) 100%),
    repeating-linear-gradient(0deg, transparent 0, transparent 60px, rgba(255, 255, 255, 0.02) 60px, rgba(255, 255, 255, 0.02) 61px),
    repeating-linear-gradient(90deg, transparent 0, transparent 60px, rgba(255, 255, 255, 0.02) 60px, rgba(255, 255, 255, 0.02) 61px);
}

.legal-hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 56px;
}

.legal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-family: var(--font-head);
  font-weight: 600;
}

.legal-breadcrumb a {
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

.legal-breadcrumb a:hover {
  color: var(--orange);
}

.legal-bc-sep {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 300;
}

.legal-breadcrumb span:last-child {
  color: var(--orange);
}

.legal-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 6px 14px;
  background: rgba(245, 132, 31, 0.12);
  border: 1px solid rgba(245, 132, 31, 0.3);
}

.legal-hero-eyebrow span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.legal-hero-title {
  font-family: var(--font-head);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -0.025em;
  max-width: 900px;
}

.legal-hero-title em {
  font-style: normal;
  color: var(--orange);
}

.legal-hero-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.7;
  font-weight: 300;
  margin-top: 24px;
  max-width: 620px;
}

.legal-hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex-wrap: wrap;
}

.lhm-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lhm-label {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lhm-value {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

/* ════════ MAIN LAYOUT WITH SIDEBAR ════════ */
.legal-main {
  background: var(--bg);
  padding: 80px 0 120px;
}

.legal-layout {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 56px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 72px;
  align-items: start;
}

/* ════════ SIDEBAR (Table of Contents) ════════ */
.legal-sidebar {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
  align-self: start;
}

.toc-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 28px 24px;
}

.toc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.toc-header-bar {
  width: 16px;
  height: 2px;
  background: var(--orange);
}

.toc-header span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.toc-title {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 18px;
}

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

.toc-list li {
  position: relative;
}

.toc-list a {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 12px 9px 14px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  line-height: 1.4;
  transition: all 0.2s;
  border-left: 2px solid transparent;
  position: relative;
}

.toc-list a:hover {
  color: var(--navy);
  background: var(--bg-2);
  border-left-color: rgba(245, 132, 31, 0.4);
}

.toc-list a.active {
  color: var(--navy);
  background: var(--bg-2);
  border-left-color: var(--orange);
  font-weight: 500;
}

.toc-num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.06em;
  width: 22px;
  padding-top: 1px;
}

.toc-cta {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.toc-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 12px 16px;
  background: var(--navy);
  color: #fff;
  font-family: var(--font-head);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.2s;
}

.toc-cta-btn:hover {
  background: var(--orange);
}

/* ════════ ARTICLE CONTENT ════════ */
.legal-article {
  max-width: 760px;
  background: var(--white);
  padding: 56px 64px;
  border: 1px solid var(--border);
}

.legal-intro {
  padding: 24px 28px;
  margin-bottom: 48px;
  background: var(--bg);
  border-left: 3px solid var(--orange);
  font-size: 15.5px;
  color: var(--dark);
  line-height: 1.8;
  font-weight: 400;
}

.legal-intro strong {
  color: var(--navy);
  font-weight: 600;
}

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

.legal-section:last-of-type {
  margin-bottom: 32px;
}

.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.legal-section-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 56px;
  height: 2px;
  background: var(--orange);
}

.legal-section-num {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.16em;
  letter-spacing: 0.18em;
  padding-top: 2px;
  min-width: 32px;
}

.legal-section h2 {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.015em;
  line-height: 1.25;
  margin: 0;
}

.legal-section p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.85;
  font-weight: 400;
  margin-bottom: 16px;
}

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

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

.legal-section ul {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
}

.legal-section ul li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 11px;
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.75;
  font-weight: 400;
}

.legal-section ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 12px;
  height: 1.5px;
  background: var(--orange);
}

.legal-section ul li strong {
  color: var(--dark);
  font-weight: 600;
}

.legal-section a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: rgba(27, 54, 82, 0.3);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: all 0.2s;
}

.legal-section a:hover {
  color: var(--orange);
  text-decoration-color: var(--orange);
}

/* ════════ HIGHLIGHT BOX ════════ */
.legal-highlight {
  margin: 24px 0;
  padding: 20px 24px;
  background: var(--bg);
  border-left: 3px solid var(--navy);
  font-size: 14px;
  color: var(--muted);
  line-height: 1.75;
  font-style: italic;
}

.legal-highlight strong {
  color: var(--dark);
  font-style: normal;
}

/* ════════ CONTACT CARD ════════ */
.legal-contact-card {
  margin-top: 48px;
  padding: 36px 40px;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  position: relative;
  overflow: hidden;
}

.legal-contact-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background: var(--orange);
}

.lcc-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.lcc-eyebrow-bar {
  width: 16px;
  height: 2px;
  background: var(--orange);
}

.lcc-eyebrow span {
  font-family: var(--font-head);
  font-size: 10px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lcc-name {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lcc-rows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 32px;
}

.lcc-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.lcc-label {
  font-family: var(--font-head);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--orange);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lcc-value {
  font-size: 14px;
  color: #fff;
  font-weight: 500;
}

.lcc-value a {
  color: #fff;
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  padding-bottom: 1px;
  transition: all 0.2s;
}

.lcc-value a:hover {
  color: var(--orange);
  border-bottom-color: var(--orange);
}

.lcc-cta {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lcc-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 26px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.2s;
}

.lcc-cta-btn:hover {
  background: #d4700f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245, 132, 31, 0.35);
}

/* ════════ EFFECTIVE DATE ════════ */
.legal-effective-block {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.legal-effective {
  font-family: var(--font-head);
  font-size: 11px;
  color: var(--light);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
}

.legal-effective strong {
  color: var(--navy);
  font-weight: 700;
}

.legal-back-top {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}

.legal-back-top:hover {
  color: var(--orange);
}

.legal-back-top svg {
  transition: transform 0.2s;
}

.legal-back-top:hover svg {
  transform: translateY(-2px);
}

/* ════════ RESPONSIVE BREAKPOINTS ════════ */
@media (max-width: 1199px) {
  .legal-layout {
    grid-template-columns: 240px 1fr;
    gap: 48px;
  }
  .legal-article {
    padding: 48px 48px;
  }
}

@media (max-width: 1099px) {
  .legal-hero-content {
    padding: 0 40px;
  }
  .legal-layout {
    padding: 0 40px;
  }
}

@media (max-width: 999px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .legal-sidebar {
    position: static;
    order: 2;
  }

  .legal-article {
    order: 1;
  }

  .toc-card {
    padding: 24px 20px;
  }

  .toc-list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px;
  }

  .toc-list a {
    flex: 1 1 calc(50% - 4px);
    padding: 10px 12px;
    font-size: 12.5px;
  }
}

@media (max-width: 899px) {
  .legal-hero {
    padding-top: calc(var(--nav-height) + 56px);
    padding-bottom: 64px;
  }

  .legal-hero-content {
    padding: 0 24px;
  }

  .legal-hero-meta {
    gap: 18px;
    margin-top: 28px;
  }

  .legal-main {
    padding: 56px 0 80px;
  }

  .legal-layout {
    padding: 0 24px;
  }

  .legal-article {
    padding: 36px 32px;
  }

  .legal-intro {
    padding: 22px 24px;
    margin-bottom: 36px;
    font-size: 14.5px;
  }

  .legal-section {
    margin-bottom: 36px;
  }

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

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

  .legal-contact-card {
    padding: 28px 28px;
  }

  .lcc-rows {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .lcc-name {
    font-size: 18px;
  }
}

@media (max-width: 639px) {
  .legal-hero-content {
    padding: 0 20px;
  }

  .legal-hero-title {
    font-size: 36px;
    line-height: 1.05;
  }

  .legal-hero-sub {
    font-size: 14px;
  }

  .legal-layout {
    padding: 0 16px;
  }

  .legal-article {
    padding: 28px 22px;
  }

  .legal-intro {
    padding: 18px 20px;
    font-size: 13.5px;
  }

  .legal-section-header {
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
  }

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

  .legal-contact-card {
    padding: 24px 22px;
    margin-top: 36px;
  }

  .lcc-name {
    font-size: 17px;
  }

  .toc-list {
    flex-direction: column;
  }

  .toc-list a {
    flex: 1 1 100%;
  }

  .legal-effective-block {
    flex-direction: column;
    align-items: flex-start;
  }
}
