:root {
  --legal-wine: #b22a1d;
  --legal-wine-dark: #7d1b13;
  --legal-ink: #1d1b1a;
  --legal-muted: #68615e;
  --legal-soft: #f7f5f3;
  --legal-line: #e4ded9;
  --legal-sand: #efe7e2;
}

html { scroll-behavior: smooth; }
body { background: #fff; color: var(--legal-ink); }
.header { z-index: 50; }
.menuBtn { border: 0; background: transparent; cursor: pointer; }

.legalHero {
  margin-top: 65px;
  padding: 60px 0 50px;
  background: linear-gradient(135deg, #f5f1ee 0%, #fff 60%, #efe2dc 100%);
  border-bottom: 1px solid var(--legal-line);
}
.legalHero__inner { max-width: 900px; }
.legalEyebrow { margin-bottom: 14px; color: var(--legal-wine); font-size: 13px; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.legalHero h1 { margin: 0 0 18px; font-size: clamp(38px, 5vw, 58px); line-height: 1.06; letter-spacing: -.035em; }
.legalHero p { max-width: 760px; margin: 0; color: #504a47; font-size: 18px; line-height: 1.7; }
.legalMeta { display: inline-flex; align-items: center; margin-top: 22px; padding: 9px 14px; border-radius: 999px; background: #fff; color: #4a4542; font-size: 13px; font-weight: 700; box-shadow: 0 5px 20px rgba(45, 29, 23, .08); }

.legalLayout { display: grid; grid-template-columns: 275px minmax(0, 900px); gap: 58px; justify-content: center; padding-top: 60px; padding-bottom: 84px; }
.legalToc { position: sticky; top: 94px; align-self: start; max-height: calc(100vh - 125px); overflow-y: auto; padding: 5px 10px 5px 20px; border-left: 3px solid var(--legal-wine); scrollbar-width: thin; }
.legalToc > strong { display: block; margin-bottom: 15px; font-size: 13px; letter-spacing: .11em; text-transform: uppercase; }
.legalToc ol, .legalToc ul { margin: 0; padding: 0; list-style: none; }
.legalToc li { float: none; margin: 0 0 10px; padding: 0; line-height: 1.35; }
.legalToc a { color: #47413e; font-size: 12.5px; }
.legalToc a:hover { color: var(--legal-wine); text-decoration: none; }

.legalBody { min-width: 0; font-size: 16px; line-height: 1.78; }
.legalBody * { box-sizing: border-box; }
.legalBody p { float: none; margin: 0 0 17px; padding: 0; color: #3d3937; line-height: 1.78; }
.legalBody a { color: var(--legal-wine); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.legalBody strong, .legalBody b { color: #262220; }
.legalBody ul, .legalBody ol { float: none; margin: 18px 0 24px; padding-left: 26px; }
.legalBody li { float: none; margin: 9px 0; padding: 0; color: #3d3937; line-height: 1.7; }
.legalBody h2, .legalBody .policySectionTitle {
  scroll-margin-top: 95px;
}
.legalBody h2 { margin: 44px 0 20px; font-size: 30px; line-height: 1.25; }
.legalBody h3 { margin: 32px 0 14px; font-size: 22px; line-height: 1.35; }

.legalNotice { margin: 0 0 34px; padding: 24px 27px; border: 1px solid #e3d4cd; border-left: 4px solid var(--legal-wine); border-radius: 0 13px 13px 0; background: #faf5f2; }
.legalNotice p:last-child { margin-bottom: 0; }
.legalActions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 25px; }
.legalButton { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 12px 20px; border-radius: 999px; background: var(--legal-wine); color: #fff !important; font-weight: 700; text-decoration: none !important; transition: .2s ease; }
.legalButton[type="button"] { border: 0; font: inherit; cursor: pointer; }
.legalButton:hover { background: var(--legal-wine-dark); transform: translateY(-1px); }
.legalButton--secondary { border: 1px solid var(--legal-line); background: #fff; color: #2c2826 !important; }
.legalButton--secondary:hover { background: var(--legal-soft); }

/* Service Agreement numbering and hierarchy */
.serviceContent > ul.numeric-decimals.detail { counter-reset: legal-section; margin: 0; padding: 0; list-style: none; }
.serviceContent > ul.numeric-decimals.detail > li { position: relative; margin: 0 0 38px; padding: 0 0 28px; border-bottom: 1px solid var(--legal-line); list-style: none; scroll-margin-top: 95px; }
.serviceContent > ul.numeric-decimals.detail > li::before { counter-increment: legal-section; content: counter(legal-section) "."; display: inline-block; margin: 0 9px 14px 0; color: var(--legal-wine); font-size: 25px; font-weight: 800; }
.serviceContent > ul.numeric-decimals.detail > li > b:first-child { display: inline; color: #201e1d; font-size: 25px; line-height: 1.3; }
.serviceContent ul.numeric-decimals.detail ul { counter-reset: legal-subsection; list-style: none; }
.serviceContent ul.numeric-decimals.detail ul > li::before { counter-increment: legal-subsection; content: counter(legal-section) "." counter(legal-subsection) " "; color: var(--legal-wine); font-weight: 700; }
.serviceContent .indent { padding-left: 20px; border-left: 2px solid var(--legal-line); }
.serviceContent .mt { margin-top: 18px; }
.serviceContent .custom-bullet { display: block; position: relative; padding-left: 20px; }
.serviceContent .custom-bullet::before { content: "•"; position: absolute; left: 4px; color: var(--legal-wine); }

/* Privacy Policy hierarchy */
.privacyContent .contentOne { margin-bottom: 13px; padding: 17px 20px; border-radius: 9px; background: #f7f2ef; font-size: 14px; line-height: 1.65; }
.privacyContent .policySectionTitle { margin: 42px 0 18px; padding: 0; list-style: none; }
.privacyContent .policySectionTitle > li { margin: 0; color: #211f1e; font-size: 29px; font-weight: 800; line-height: 1.25; }
.privacyContent .policySectionTitle::after { content: ""; display: block; width: 52px; height: 3px; margin-top: 14px; background: var(--legal-wine); }
.privacyContent .titleOne { margin: 38px 0 15px; color: var(--legal-wine); font-size: 23px; font-weight: 800; line-height: 1.35; }
.privacyContent .titleTwo { margin: 29px 0 12px; color: #2c2826; font-size: 20px; font-weight: 800; line-height: 1.45; }
.privacyContent .titleThree { margin: 23px 0 10px; color: #37312e; font-size: 17px; font-weight: 700; line-height: 1.55; }
.privacyContent .contentUlOne { padding-left: 25px; }

.legalTableScroll, .table-responsive { width: 100%; margin: 25px 0; overflow-x: auto; border: 1px solid var(--legal-line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.legalBody table { width: 100%; min-width: 720px; border-collapse: collapse; background: #fff; }
.legalBody th { padding: 14px 15px; border: 1px solid var(--legal-line); background: #7d1b13; color: #fff; font-size: 13px; line-height: 1.45; text-align: left; vertical-align: middle; }
.legalBody td { padding: 13px 15px; border: 1px solid var(--legal-line); color: #3c3734; font-size: 13px; line-height: 1.55; vertical-align: top; }
.legalBody tbody tr:nth-child(even) { background: var(--legal-soft); }

/* Contact page */
.contactMain { padding: 64px 0 84px; }
.contactIntro { max-width: 780px; margin: 0 auto 36px; color: #4e4845; font-size: 18px; line-height: 1.75; text-align: center; }
.contactGrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.contactCard { display: flex; min-height: 270px; flex-direction: column; padding: 30px; border: 1px solid var(--legal-line); border-radius: 16px; background: #fff; box-shadow: 0 12px 36px rgba(43, 28, 22, .07); }
.contactIcon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 20px; border-radius: 50%; background: var(--legal-sand); color: var(--legal-wine); }
.contactIcon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contactCard h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.3; }
.contactCard p { margin: 0 0 22px; color: var(--legal-muted); line-height: 1.7; }
.contactCard a { margin-top: auto; align-self: flex-start; color: var(--legal-wine); font-weight: 800; }
.supportPanel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 46px; margin-top: 50px; padding: 42px; border-radius: 18px; background: #1d1b1a; color: #fff; }
.supportPanel h2 { margin: 0 0 16px; color: #fff; font-size: 30px; }
.supportPanel p, .supportPanel li { color: #eee8e4; line-height: 1.7; }
.supportPanel ul { margin: 0; padding-left: 20px; }
.supportDetails { display: grid; gap: 12px; }
.supportDetails a { color: #f2c0b6; overflow-wrap: anywhere; }
.supportDetails address { color: #eee8e4; font-style: normal; line-height: 1.7; }
.contactShortcuts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.footer .footLinks dl:first-child { padding-right: 44px; }
.footer .footLinks dl dd { float: none; }
.footer .footLinks dl a { color: #333; }

@media (max-width: 980px) {
  .legalLayout { grid-template-columns: 1fr; gap: 28px; }
  .legalToc { position: static; max-height: none; padding: 23px 25px; border: 1px solid var(--legal-line); border-left: 3px solid var(--legal-wine); border-radius: 0 12px 12px 0; }
  .legalToc ol, .legalToc ul { columns: 2; column-gap: 30px; }
  .contactGrid { grid-template-columns: 1fr 1fr; }
  .contactCard:last-child { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  .legalHero { padding: 40px 0 36px; }
  .legalHero h1 { font-size: 38px; }
  .legalHero p { font-size: 16px; }
  .legalLayout { padding-top: 38px; padding-bottom: 58px; }
  .legalToc ol, .legalToc ul { columns: 1; }
  .legalBody { font-size: 15.5px; }
  .serviceContent > ul.numeric-decimals.detail > li::before, .serviceContent > ul.numeric-decimals.detail > li > b:first-child { font-size: 21px; }
  .privacyContent .policySectionTitle > li { font-size: 25px; }
  .contactMain { padding: 42px 0 60px; }
  .contactGrid { grid-template-columns: 1fr; }
  .contactCard:last-child { grid-column: auto; }
  .supportPanel { grid-template-columns: 1fr; gap: 28px; padding: 30px; }
  .footer .footLinks dl { width: 100%; padding: 0 0 25px !important; }
}

@media (max-width: 420px) {
  .legalHero h1 { font-size: 33px; }
  .legalBody table { min-width: 650px; }
  .legalBody th, .legalBody td { padding: 11px 12px; font-size: 12.5px; }
  .legalNotice, .contactCard { padding: 23px; }
  .supportPanel { padding: 25px; }
}

@media print {
  .header, .footer, .legalToc, .legalActions { display: none !important; }
  .legalHero { margin: 0; padding: 0 0 24px; background: #fff; }
  .legalHero h1 { font-size: 30px; }
  .legalLayout { display: block; padding: 20px 0; }
  .legalBody { font-size: 11pt; }
  .legalNotice { border: 1px solid #bbb; background: #fff; }
  .serviceContent > ul.numeric-decimals.detail > li { break-inside: avoid-page; }
  .legalTableScroll, .table-responsive { overflow: visible; }
  .legalBody table { min-width: 0; font-size: 8pt; }
}
