/* ================================================================
   legal.css — Aqua Laundry · LEGAL PAGE
   ================================================================
   ⚠️  ต้องโหลด main.css ก่อนไฟล์นี้เสมอ
   โค้ดที่ซ้ำกันทุกหน้า (hero, breadcrumb, :root tokens,
   utilities, keyframes) ถูกย้ายไปรวมที่ main.css แล้ว
   ================================================================ */

/* :root vars → moved to main.css */

/* ============================================
   RELATED BAR
   ============================================ */

.legal-related-bar {
  background: white;
  border-bottom: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,119,182,0.06);
}

.legal-related-bar .container {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 48px;
  flex-wrap: wrap;
}

.legal-related-label {
  font-size: 12px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
}
.legal-related-label i { color: var(--aqua-primary); }

.legal-related-links {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  overflow-x: auto;
  scrollbar-width: none;
}
.legal-related-links::-webkit-scrollbar { display: none; }

.legal-related-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1.5px solid #e2e8f0;
  border-radius: 50px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s;
  background: white;
}
.legal-related-link i { font-size: 11px; }
.legal-related-link:hover {
  border-color: var(--aqua-primary);
  color: var(--aqua-secondary);
  background: rgba(0,180,216,0.04);
}

/* ============================================
   LAYOUT
   ============================================ */

.legal-page {
  background: #f8fafc;
  padding: 48px 0 80px;
  min-height: 60vh;
}

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

/* ============================================
   SIDEBAR TOC
   ============================================ */

.legal-toc {
  position: sticky;
  top: 80px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 0;
  box-shadow: 0 2px 12px rgba(0,119,182,0.06);
}

.legal-toc-title {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #94a3b8;
  padding: 0 20px 10px;
  border-bottom: 1px solid #f1f5f9;
  margin-bottom: 8px;
}

.legal-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc-list li a {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
  text-decoration: none;
  transition: all 0.18s;
  border-left: 2px solid transparent;
}

.legal-toc-list li a i {
  font-size: 11px;
  color: #cbd5e1;
  width: 14px;
  flex-shrink: 0;
  transition: color 0.18s;
}

.legal-toc-list li a:hover {
  color: var(--aqua-secondary);
  background: rgba(0,180,216,0.05);
  border-left-color: rgba(0,180,216,0.3);
}

.legal-toc-list li a:hover i { color: var(--aqua-primary); }

.legal-toc-list li a.active {
  color: var(--aqua-secondary);
  font-weight: 700;
  background: rgba(0,180,216,0.07);
  border-left-color: var(--aqua-primary);
}

.legal-toc-list li a.active i { color: var(--aqua-primary); }

/* ============================================
   CONTENT PANELS
   ============================================ */



.legal-content-card {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 40px 44px;
  box-shadow: 0 2px 16px rgba(0,119,182,0.06);
}

/* Doc header */
.legal-doc-header {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding-bottom: 28px;
  border-bottom: 1.5px solid #f1f5f9;
  margin-bottom: 36px;
}

.legal-doc-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  background: var(--aqua-gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(0,180,216,0.3);
}

.legal-doc-meta { flex: 1; }

.legal-doc-title {
  font-family: 'Kanit', sans-serif;
  font-size: 26px; font-weight: 800;
  color: var(--aqua-dark); margin: 0 0 6px; line-height: 1.2;
}

.legal-doc-dates {
  display: flex; gap: 16px; flex-wrap: wrap;
}

.legal-doc-date {
  font-size: 12px; color: #94a3b8;
  display: flex; align-items: center; gap: 5px;
}
.legal-doc-date i { color: var(--aqua-primary); font-size: 11px; }

/* Info banner */
.legal-info-banner {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: rgba(0,180,216,0.06);
  border: 1px solid rgba(0,180,216,0.18);
  border-left: 4px solid var(--aqua-primary);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 32px;
}

.legal-info-banner i { color: var(--aqua-primary); font-size: 15px; margin-top: 1px; flex-shrink: 0; }
.legal-info-banner p { font-size: 13.5px; color: #475569; line-height: 1.6; margin: 0; }

/* Sections */
.legal-section { margin-bottom: 36px; scroll-margin-top: 80px; }
.legal-section:last-child { margin-bottom: 0; }

.legal-section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Kanit', sans-serif;
  font-size: 18px; font-weight: 700;
  color: var(--aqua-dark);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid #f1f5f9;
}

.legal-section-num {
  width: 28px; height: 28px;
  background: var(--aqua-gradient);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800; color: white;
  flex-shrink: 0;
}

.legal-section-icon {
  width: 28px; height: 28px;
  background: rgba(0,180,216,0.1);
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; color: var(--aqua-primary);
  flex-shrink: 0;
}

.legal-body {
  font-size: 14.5px;
  color: #475569;
  line-height: 1.85;
}

.legal-body p { margin: 0 0 14px; }
.legal-body p:last-child { margin-bottom: 0; }

.legal-body strong { color: var(--aqua-dark); font-weight: 700; }

/* .legal-body a { color: var(--aqua-primary); text-decoration: underline; }
.legal-body a:hover { color: var(--aqua-secondary); } */

/* Bullet list */
.legal-list {
  list-style: none;
  padding: 0; margin: 12px 0 14px;
}

.legal-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #f8fafc;
  font-size: 14px; color: #475569; line-height: 1.6;
}

.legal-list li:last-child { border-bottom: none; }

.legal-list li::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--aqua-primary);
  flex-shrink: 0;
  margin-top: 8px;
}

/* Highlight box */
.legal-highlight {
  background: linear-gradient(135deg, rgba(0,180,216,0.06), rgba(0,119,182,0.04));
  border: 1px solid rgba(0,180,216,0.15);
  border-radius: 12px;
  padding: 18px 20px;
  margin: 16px 0;
}

.legal-highlight p { margin: 0; font-size: 14px; color: #475569; line-height: 1.7; }

/* Contact box */
.legal-contact-box {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1.5px solid rgba(0,180,216,0.2);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 16px;
  box-shadow: 0 2px 10px rgba(0,180,216,0.08);
  flex-wrap: wrap;
}

.legal-contact-icon {
  width: 48px; height: 48px;
  background: var(--aqua-gradient);
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: white; flex-shrink: 0;
  box-shadow: 0 3px 10px rgba(0,180,216,0.3);
}

.legal-contact-info { flex: 1; }
.legal-contact-info strong { display: block; font-size: 14px; font-weight: 700; color: var(--aqua-dark); margin-bottom: 4px; }
.legal-contact-info span { font-size: 13px; color: #64748b; }

.legal-contact-link {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 10px 20px;
  background: var(--aqua-gradient);
  color: white; border-radius: 10px;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  transition: all 0.25s;
  white-space: nowrap;
}
.legal-contact-link:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,180,216,0.4); color: white; }

/* Table */
.legal-table-wrap { overflow-x: auto; margin: 14px 0; border-radius: 12px; border: 1.5px solid #e2e8f0; }

.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.legal-table th {
  background: linear-gradient(135deg, #f0f9ff, #e8f5fc);
  color: var(--aqua-dark);
  font-weight: 700;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1.5px solid #e2e8f0;
  white-space: nowrap;
}

.legal-table td {
  padding: 11px 16px;
  color: #475569;
  border-bottom: 1px solid #f1f5f9;
  line-height: 1.5;
  vertical-align: top;
}

.legal-table tr:last-child td { border-bottom: none; }
.legal-table tr:hover td { background: rgba(0,180,216,0.03); }

/* Last updated footer */
.legal-footer-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}

.legal-footer-bar span { font-size: 12.5px; color: #94a3b8; display: flex; align-items: center; gap: 6px; }
.legal-footer-bar span i { color: var(--aqua-primary); }

.legal-print-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 16px;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px; background: white;
  font-size: 12.5px; font-weight: 600; color: #64748b;
  cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.legal-print-btn:hover { border-color: var(--aqua-primary); color: var(--aqua-primary); }

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 992px) {
  .legal-layout { grid-template-columns: 1fr; }
  .legal-toc { position: static; display: none; }
  .legal-content-card { padding: 28px 28px; }
}

@media (max-width: 768px) {
  .legal-page { padding: 24px 0 60px; }
  .legal-content-card { padding: 22px 18px; border-radius: 16px; }
  .legal-doc-header { flex-direction: column; gap: 12px; }
  .legal-doc-title { font-size: 22px; }
  .legal-related-bar .container { gap: 8px; min-height: auto; padding-top: 10px; padding-bottom: 10px; }
  .legal-related-label { font-size: 11px; }
  .legal-related-link { padding: 5px 12px; font-size: 12px; }
  .legal-contact-box { flex-direction: column; align-items: flex-start; gap: 14px; }
  .legal-contact-link { width: 100%; justify-content: center; }
  .legal-footer-bar { flex-direction: column; align-items: flex-start; gap: 10px; }
  .legal-section-title { font-size: 16px; }
}



/* ============================================
   LEGAL INDEX PAGE  (.li-*)
   ============================================ */

.li-page {
  background: #f8fafc;
  padding: 56px 0 80px;
}

/* Intro block */
.li-intro {
  display: flex;
  align-items: center;
  gap: 20px;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  padding: 28px 32px;
  margin-bottom: 40px;
  box-shadow: 0 2px 16px rgba(0,119,182,0.06);
}

.li-intro-icon {
  width: 60px; height: 60px; flex-shrink: 0;
  background: var(--aqua-gradient);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; color: white;
  box-shadow: 0 4px 16px rgba(0,180,216,0.3);
}

.li-intro-title {
  font-family: 'Kanit', sans-serif;
  font-size: 22px; font-weight: 800;
  color: var(--aqua-dark); margin: 0 0 6px; line-height: 1.2;
}

.li-intro-desc {
  font-size: 14.5px; color: #64748b; line-height: 1.7; margin: 0;
}

/* Cards grid */
.li-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 32px;
}

.li-card {
  position: relative;
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  box-shadow: 0 2px 14px rgba(0,119,182,0.06);
}

.li-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(0,119,182,0.13);
}

/* Top accent strip */
.li-card-accent {
  height: 4px; width: 100%; flex-shrink: 0;
}
.li-accent-blue   { background: linear-gradient(90deg, #00B4D8, #0077B6); }
.li-accent-indigo { background: linear-gradient(90deg, #6366f1, #4f46e5); }
.li-accent-teal   { background: linear-gradient(90deg, #14b8a6, #0d9488); }
.li-accent-amber  { background: linear-gradient(90deg, #f59e0b, #d97706); }

.li-card:hover.li-card .li-accent-blue   { box-shadow: 0 2px 12px rgba(0,180,216,0.4); }
.li-card:hover .li-accent-indigo { box-shadow: 0 2px 12px rgba(99,102,241,0.4); }
.li-card:hover .li-accent-teal   { box-shadow: 0 2px 12px rgba(20,184,166,0.4); }
.li-card:hover .li-accent-amber  { box-shadow: 0 2px 12px rgba(245,158,11,0.4); }

.li-card-inner {
  display: flex; flex-direction: column;
  padding: 24px 26px 20px; flex: 1;
}

/* Icon */
.li-card-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: white;
  margin-bottom: 18px; flex-shrink: 0;
  transition: transform 0.25s;
}
.li-card:hover .li-card-icon { transform: scale(1.08); }

.li-icon-blue   { background: linear-gradient(135deg, #00B4D8, #0077B6); box-shadow: 0 4px 14px rgba(0,180,216,0.3); }
.li-icon-indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); box-shadow: 0 4px 14px rgba(99,102,241,0.3); }
.li-icon-teal   { background: linear-gradient(135deg, #14b8a6, #0d9488); box-shadow: 0 4px 14px rgba(20,184,166,0.3); }
.li-icon-amber  { background: linear-gradient(135deg, #f59e0b, #d97706); box-shadow: 0 4px 14px rgba(245,158,11,0.3); }

.li-card-body { flex: 1; }

.li-card-title {
  font-family: 'Kanit', sans-serif;
  font-size: 18px; font-weight: 800;
  color: var(--aqua-dark); margin: 0 0 8px; line-height: 1.2;
  transition: color 0.2s;
}
.li-card:hover .li-card-title { color: var(--aqua-secondary); }

.li-card-desc {
  font-size: 13.5px; color: #64748b; line-height: 1.7;
  margin: 0 0 16px;
}

/* Tags */
.li-card-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }

.li-tag {
  font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 50px;
  background: #f1f5f9; color: #64748b;
  border: 1px solid #e2e8f0;
  transition: all 0.2s;
}
.li-card:hover .li-tag {
  background: rgba(0,180,216,0.07);
  border-color: rgba(0,180,216,0.2);
  color: var(--aqua-secondary);
}

/* Card footer */
.li-card-footer {
  display: flex; align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  margin-top: auto;
}

.li-card-date {
  font-size: 11.5px; color: #94a3b8;
  display: flex; align-items: center; gap: 5px;
}
.li-card-date i { font-size: 11px; }

.li-card-read {
  font-size: 12.5px; font-weight: 700;
  color: var(--aqua-primary);
  display: flex; align-items: center; gap: 5px;
  transition: gap 0.2s;
}
.li-card:hover .li-card-read { gap: 8px; }
.li-card-read i { font-size: 10px; }

/* Info strip */
.li-info-strip {
  background: white;
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px 28px;
  box-shadow: 0 2px 12px rgba(0,119,182,0.05);
}

.li-info-strip-inner {
  display: flex; align-items: center;
  gap: 24px; flex-wrap: wrap;
}

.li-info-item {
  display: flex; align-items: center; gap: 12px; flex: 1; min-width: 160px;
}

.li-info-item > i {
  width: 36px; height: 36px; flex-shrink: 0;
  background: rgba(0,180,216,0.08);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; color: var(--aqua-primary);
}

.li-info-item strong { display: block; font-size: 12px; font-weight: 700; color: var(--aqua-dark); }
.li-info-item span   { font-size: 12px; color: #64748b; }

.li-info-divider {
  width: 1px; height: 40px; flex-shrink: 0;
  background: linear-gradient(180deg, transparent, #e2e8f0 30%, #e2e8f0 70%, transparent);
}

/* ============================================
   RESPONSIVE — index page
   ============================================ */

@media (max-width: 768px) {
  .li-page { padding: 24px 0 60px; }
  .li-intro { flex-direction: column; text-align: center; padding: 22px 20px; gap: 14px; }
  .li-grid { grid-template-columns: 1fr; gap: 14px; }
  .li-card-inner { padding: 20px 20px 16px; }
  .li-card-title { font-size: 17px; }
  .li-info-strip { padding: 16px 18px; }
  .li-info-divider { display: none; }
  .li-info-strip-inner { gap: 14px; }
  .li-info-item { min-width: 120px; }
}
