/* Terms & Conditions page: categories on the left, sections that open and close. */
html body.page-terms { background: #fff !important; }
html body.page-terms::before { display: none; }

.tc { max-width: 1160px; margin: 0 auto; padding: 34px 20px 60px; color: #24384d; }
.tc-head { text-align: center; }
html body .tc-head h1 { margin: 0 0 6px; color: #0d2a4a !important; font-size: clamp(1.9rem, 4vw, 2.7rem); }
.tc-head p { margin: 0; color: #5b6b7a; }
.tc-company { margin-top: 6px !important; color: #24384d !important; font-weight: 600; }

.tc-keys { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 26px 0 30px; }
.tc-key { padding: 16px 18px; border: 1px solid #dbe6ef; border-top: 4px solid #0b5ed7; border-radius: 12px; background: #f7fafd; }
.tc-key b { display: block; color: #0d2a4a; font-size: 1.5rem; line-height: 1.2; }
.tc-key span { color: #4a5c6e; font-size: .94rem; line-height: 1.45; }

.tc-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 30px; align-items: start; }
.tc-nav { position: sticky; top: 110px; display: grid; gap: 4px; }

.tc-nav a {
  padding: 10px 13px;
  border-radius: 10px;
  color: #24384d;
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
}

.tc-nav a:hover { background: #eef4fa; color: #0b5ed7; }

.tc-tools { display: flex; gap: 8px; margin-top: 10px; padding-top: 12px; border-top: 1px solid #e2e9f0; }

.tc-tools button {
  flex: 1;
  height: 38px;
  border: 1px solid #c9d6e2;
  border-radius: 9px;
  background: #fff;
  color: #24384d;
  font-size: .84rem;
  font-weight: 600;
  cursor: pointer;
}

.tc-cat { margin-bottom: 30px; scroll-margin-top: 110px; }
html body .tc-cat h2 { margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #0b5ed7; color: #0d2a4a !important; font-size: 1.4rem; }

.tc-sec { border: 1px solid #e2e9f0; border-radius: 12px; background: #fff; }
.tc-sec + .tc-sec { margin-top: 10px; }

.tc-sec summary {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 13px 16px;
  color: #0d2a4a;
  font-size: 1.04rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}

.tc-sec summary::-webkit-details-marker { display: none; }
.tc-sec summary i { flex: none; width: 26px; color: #0b5ed7; font-style: normal; }
.tc-sec summary::after { content: "+"; margin-left: auto; color: #0b5ed7; font-size: 1.3rem; font-weight: 500; line-height: 1; }
.tc-sec[open] summary::after { content: "\2212"; }
.tc-body { padding: 0 16px 14px 52px; }
.tc-body p { margin: 0 0 10px; line-height: 1.65; }
.tc-body ul { margin: 0 0 10px; padding-left: 20px; list-style: disc; }
.tc-body li { display: list-item; margin-bottom: 6px; line-height: 1.6; list-style: disc; }
.tc-body li::marker { color: #0b5ed7; }

.tc-table { width: 100%; max-width: 480px; margin: 0 0 14px; border-collapse: collapse; }
.tc-table th, .tc-table td { padding: 9px 12px; border: 1px solid #dbe6ef; text-align: left; }
.tc-table th { background: #eef4fa; color: #0d2a4a; }
.tc-table td:last-child, .tc-table th:last-child { width: 40%; text-align: right; font-weight: 700; }

@media (max-width: 860px) {
  .tc-layout { grid-template-columns: minmax(0, 1fr); }
  .tc-nav { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tc-nav a { border: 1px solid #e2e9f0; font-size: .88rem; text-align: center; }
  .tc-tools { grid-column: 1 / -1; margin-top: 4px; padding-top: 0; border-top: 0; }
  .tc-keys { grid-template-columns: minmax(0, 1fr); }
  .tc-body { padding-left: 16px; }
}

@media print {
  .main-header, .tc-nav, footer, .guest-hi, .guest-toast, .site-loader, .site-scroll-tracker { display: none !important; }
  .tc-layout { display: block; }
  .tc-sec { break-inside: avoid; border: 0; }
  .tc-sec summary::after { display: none; }
  .tc-sec summary { padding: 8px 0 2px; }
  .tc-body { padding: 0; }
}

/* Policy pages (Terms, Privacy, Refund): links between them, business numbers, complaints box. */
.tc-updated { margin-top: 4px !important; font-size: .9rem; }
.tc-ids { margin: 10px 0 0; text-align: center; color: #33475f; font-size: .95rem; }
.tc-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 18px 0 6px; }
.tc-links a { padding: 8px 14px; border: 1px solid #c9d6e2; border-radius: 999px; color: #0d2a4a; font-size: .9rem; font-weight: 600; text-decoration: none; }
.tc-links a:hover { background: #eef4fa; }
.tc-links a[aria-current="page"] { border-color: #0b5ed7; background: #0b5ed7; color: #fff; }
.page-privacy .tc-head + .tc-links, .page-refund .tc-head + .tc-links { margin-bottom: 26px; }
.page-privacy .tc-layout, .page-refund .tc-layout { margin-top: 24px; }
.tc-grievance { padding: 16px 18px; border: 1px solid #dbe6ef; border-left: 4px solid #0b5ed7; border-radius: 12px; background: #f7fafd; }
html body .tc-grievance h2 { border-bottom: 0; padding-bottom: 0; }
.tc-grievance p { margin: 0 0 10px; line-height: 1.6; }
.tc-grievance ul { margin: 0; padding-left: 20px; list-style: disc; }
.tc-grievance li { display: list-item; margin-bottom: 6px; line-height: 1.55; list-style: disc; overflow-wrap: anywhere; }
.tc-grievance a { color: #0b4fb3; }
/* Privacy tables have longer text in the second column */
.page-privacy .tc-table { max-width: none; }
.page-privacy .tc-table td:last-child, .page-privacy .tc-table th:last-child { width: auto; text-align: left; font-weight: 400; }
.page-privacy .tc-table td:first-child { width: 34%; font-weight: 600; }
@media print { .tc-links { display: none; } }
