/* ==========================================================================
   FRUTAWISE LIMITED — Legal pages stylesheet
   Used ONLY by privacy.html and terms-of-service.html
   DARK berry-near-black theme to match the main site.
   ========================================================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
}

.legal-page {
  margin: 0;
  font-size: 16px;
  line-height: 1.8;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: #150D10;
  color: #EBDCE0;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.legal-page p {
  margin: 0 0 1.15em;
}

.legal-page h1,
.legal-page h2,
.legal-page h3,
.legal-page h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: #F6EDEF;
  font-weight: 700;
  line-height: 1.25;
  margin: 0 0 0.5em;
}

.legal-page a {
  color: #F0738A;
  text-decoration: none;
}

.legal-page a:hover {
  color: #E85D75;
  text-decoration: underline;
}

/* Scope isolation: never let a stray section background leak onto the
   content area of a legal page. Scoped to the body content only. */
.legal-page .legal-content section {
  background-color: transparent !important;
}

/* ==========================================================================
   LEGAL HEADER (a plain div/header element, solid background)
   ========================================================================== */

.legal-header {
  background-color: #241318;
  border-bottom: 1px solid #3A2028;
}

.legal-header-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.legal-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #F6EDEF;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 1px;
  text-decoration: none;
}

.legal-brand-chip {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: #E85D75;
  position: relative;
}

.legal-brand-chip::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 10px;
  width: 14px;
  height: 14px;
  background-color: #F6EDEF;
  border-radius: 50%;
}

.legal-brand-chip::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 4px;
  width: 7px;
  height: 6px;
  background-color: #F6EDEF;
  border-radius: 100% 0 100% 0;
  transform: rotate(-28deg);
}

.legal-home-link {
  color: #CFBDC2;
  font-size: 14px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
}

.legal-home-link:hover {
  color: #F6EDEF;
  border-bottom-color: #E85D75;
  text-decoration: none;
}

/* ==========================================================================
   LEGAL CONTENT
   ========================================================================== */

.legal-content {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}

.legal-title {
  margin: 0 0 6px;
  font-size: 40px;
  color: #F6EDEF;
}

.legal-meta {
  font-size: 14px;
  color: #97717E;
  letter-spacing: 0.5px;
  margin-bottom: 26px;
}

.legal-intro {
  background-color: #241318;
  border: 1px solid #3A2028;
  border-left: 4px solid #E85D75;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 40px;
}

.legal-intro p {
  color: #CFBDC2;
  font-size: 16px;
  margin: 0 0 0.6em;
}

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

/* Table of contents */
.legal-toc {
  background-color: #241318;
  border: 1px solid #3A2028;
  border-radius: 12px;
  padding: 24px 28px;
  margin-bottom: 46px;
}

.legal-toc-title {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
  font-weight: 700;
  color: #F6EDEF;
  margin: 0 0 12px;
}

.legal-toc ol {
  margin: 0;
  padding-left: 22px;
  columns: 2;
  column-gap: 36px;
}

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

.legal-toc a {
  color: #CFBDC2;
  font-size: 14.5px;
}

.legal-toc a:hover {
  color: #F0738A;
  text-decoration: underline;
}

/* Section blocks */
.legal-section {
  padding: 34px 0;
  border-top: 1px solid #3A2028;
  scroll-margin-top: 84px;
}

.legal-section:first-of-type {
  border-top: 2px solid #E85D75;
}

.legal-section h2 {
  font-size: 26px;
  color: #F6EDEF;
  margin-bottom: 14px;
}

.legal-section h3 {
  font-size: 19px;
  color: #F6EDEF;
  margin-top: 24px;
  margin-bottom: 10px;
}

.legal-section p {
  color: #CFBDC2;
  font-size: 15.5px;
  margin-bottom: 1.05em;
}

.legal-section ul,
.legal-section ol {
  margin: 0 0 1.1em;
  padding-left: 22px;
}

.legal-section li {
  color: #CFBDC2;
  font-size: 15.5px;
  margin-bottom: 0.45em;
}

.legal-section .legal-company {
  color: #F6EDEF;
  font-weight: 700;
}

/* ==========================================================================
   LEGAL FOOTER
   ========================================================================== */

.legal-footer {
  margin-top: 56px;
  background-color: #E85D75;
  padding: 30px 24px 34px;
}

.legal-footer-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}

.legal-footer p {
  color: #F6EDEF;
  font-size: 14px;
  line-height: 1.9;
  margin: 0 0 10px;
}

.legal-footer a {
  color: #F6EDEF;
  font-weight: 700;
  border-bottom: 1px solid #F6EDEF;
}

.legal-footer a:hover {
  color: #150D10;
  border-bottom-color: #150D10;
}

.legal-footer .legal-back-link {
  display: inline-block;
  margin-top: 4px;
  font-size: 15px;
}

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

@media (max-width: 760px) {
  .legal-title {
    font-size: 32px;
  }

  .legal-toc ol {
    columns: 1;
  }

  .legal-header-inner {
    min-height: 62px;
  }
}
