/* Shared legal stylesheet for Triple Aaa Goods And Services Inc. */

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-size: 16px;
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  background-color: #CED6F6;
  color: #30223A;
  line-height: 1.7;
  overflow-x: hidden;
}

.legal-header {
  background-color: #1C2A50;
  color: #CED6F6;
  padding: 34px 24px 30px;
  border-bottom: 6px solid #E2941A;
}

.legal-header-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-header a {
  color: #E2941A;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  margin-bottom: 14px;
  border-bottom: 2px solid #E2941A;
  padding-bottom: 2px;
}

.legal-header a:hover {
  color: #CED6F6;
  border-bottom-color: #CED6F6;
}

.legal-header h1 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  color: #CED6F6;
  margin: 0 0 8px;
  line-height: 1.15;
}

.legal-header p {
  color: #DED4E2;
  margin: 0;
  font-size: 0.98rem;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
}

.legal-shell {
  padding: 48px 0 64px;
}

.legal-content {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 24px;
  background-color: #CED6F6;
  color: #30223A;
}

.legal-content h2 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 1.32rem;
  color: #30223A;
  margin: 38px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid #B9C3E9;
  line-height: 1.25;
}

.legal-content h3 {
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 1.04rem;
  color: #275D67;
  margin: 24px 0 8px;
}

.legal-content p {
  margin: 0 0 1em;
  font-size: 1.01rem;
  color: #30223A;
}

.legal-content ul,
.legal-content ol {
  margin: 0 0 1em;
  padding-left: 24px;
  color: #30223A;
}

.legal-content li {
  margin-bottom: 7px;
}

.legal-content a {
  color: #1C2A50;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.legal-content a:hover {
  color: #B06F08;
}

.legal-content section {
  background-color: #CED6F6 !important;
  color: #30223A;
  margin: 0;
  padding: 0;
  border: none;
}

.legal-meta {
  background-color: #DED4E2;
  border-left: 6px solid #367884;
  padding: 16px 20px;
  margin: 0 0 24px;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 0.92rem;
  color: #30223A;
}

.legal-meta p {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: #30223A;
}

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

.legal-toc {
  background-color: #DED4E2;
  border: 2px solid #5C4A48;
  border-top: 8px solid #E2941A;
  border-radius: 5px;
  padding: 24px 26px;
  margin: 0 0 34px;
}

.legal-toc h2 {
  margin: 0 0 14px;
  padding: 0;
  border: none;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #1C2A50;
}

.legal-toc ol {
  column-count: 2;
  column-gap: 32px;
  margin: 0;
  padding-left: 20px;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 0.92rem;
}

.legal-toc li {
  margin-bottom: 8px;
  break-inside: avoid;
}

.legal-toc a {
  color: #1C2A50;
  text-decoration: none;
}

.legal-toc a:hover {
  color: #B06F08;
  text-decoration: underline;
  text-decoration-color: #CC2840;
  text-decoration-thickness: 3px;
}

.legal-note {
  background-color: #DED4E2;
  border-left: 6px solid #E2941A;
  padding: 14px 18px;
  margin: 22px 0;
  color: #30223A;
  font-size: 0.98rem;
}

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

.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 22px;
  border: 2px solid #5C4A48;
  border-radius: 4px;
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #DED4E2;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 0.92rem;
  color: #30223A;
}

.legal-table th {
  background-color: #1C2A50;
  color: #CED6F6;
  text-align: left;
  padding: 11px 14px;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.legal-table td {
  padding: 11px 14px;
  border-top: 2px solid #C2B7CB;
  color: #30223A;
  vertical-align: top;
}

.legal-footer {
  background-color: #1C2A50;
  color: #CED6F6;
  padding: 34px 24px;
  border-top: 5px solid #E2941A;
}

.legal-footer-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 30px;
  align-items: center;
  justify-content: space-between;
  font-family: "Trebuchet MS", "Segoe UI", Verdana, sans-serif;
  font-size: 0.9rem;
}

.legal-footer-inner p {
  margin: 0;
  color: #DED4E2;
}

.legal-footer-inner a {
  color: #CED6F6;
  text-decoration: none;
}

.legal-footer-inner a:hover {
  color: #E2941A;
  text-decoration: underline;
  text-decoration-color: #E2941A;
  text-decoration-thickness: 3px;
}

.legal-footer-brand {
  color: #CED6F6;
  font-weight: 700;
  display: block;
  margin-bottom: 4px;
}

@media (max-width: 640px) {
  .legal-toc ol {
    column-count: 1;
  }
  .legal-footer-inner {
    justify-content: flex-start;
  }
}
