/* rythmic/public/css/privacy-policy.css */

/* Global adjustments for body and html to prevent horizontal overflow and set box-sizing */
html, body {
  width: 100%;
  overflow-x: hidden; /* Prevent horizontal scroll for the entire page */
  min-width: unset; /* Ensure no global min-width is forcing horizontal overflow */
}

body {
  margin: 0;
  padding: 0;
  box-sizing: border-box; /* Apply border-box globally */
  font-family: Arial, sans-serif; /* Add a default font-family */
  color: var(--gray900); /* Default text color */
}

.privacy-policy {
  align-items: flex-start; /* Aligns content to the start of the cross axis (left for column) */
  background-color: var(--white);
  display: flex;
  flex-direction: column; /* Stack sections vertically */
  width: 100%;
  box-sizing: border-box;
  min-width: unset;
  height: auto; /* Ensure content dictates height */
  overflow-x: hidden;
}

/* Ensure the main content wrapper inside .privacy-policy is properly positioned */
.privacy-policy .frame-1948754820 {
  display: flex;
  flex-direction: column;
  width: 100%;
  position: relative;
  z-index: 1;
  margin-top: 80px; /* Clear space for the fixed navbar, consistent with terms.css */
  height: auto; /* Ensure content dictates height */
}

/* Header Section for Privacy Policy */
.privacy-policy .header-section {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally within the section */
  width: 100%;
  max-width: 1440px; /* Constrain main section width for desktop */
  margin: 0 auto; /* Center the section itself */
  box-sizing: border-box;
  background: linear-gradient(180deg, rgb(255, 255, 255) 0%, rgb(250, 250, 251) 100%);
  padding: 96px 0px; /* Desktop top/bottom padding */
  gap: 64px;
}

/* Container for Header Text */
.privacy-policy .container {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content horizontally within this container */
  width: 100%;
  max-width: 1280px; /* Wider container for content within header */
  padding: 0 32px; /* Inner horizontal padding for desktop */
  box-sizing: border-box;
}

.privacy-policy .content {
  display: flex;
  flex-direction: column;
  align-items: center; /* Center content within this block */
  width: 100%;
  max-width: 960px; /* Max width for actual text content */
  gap: 40px;
  box-sizing: border-box;
}

.privacy-policy .heading-and-supporting-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 960px;
}

.privacy-policy .heading-and-subheading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  justify-content: center;
  width: 100%;
}

.privacy-policy .heading-1 {
  color: var(--gray900);
  font-weight: 600;
  line-height: 60px;
  font-size: 60px; /* Explicit font size */
  text-align: center;
  width: 100%;
  max-width: 652px;
  margin: 0;
}

.privacy-policy .supporting-text {
  color: var(--gray600);
  font-weight: 400;
  line-height: 30px;
  font-size: 20px; /* Explicit font size */
  text-align: center;
  width: 100%;
  max-width: 758px;
  margin: 0;
}

/* --- RICH TEXT CONTENT SECTION (Main Policy Body) --- */
.privacy-policy .rich-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1440px; /* Matches main section max-width */
  margin: 0 auto;
  box-sizing: border-box;
  padding: 0px 0px 96px 0px; /* Desktop bottom padding */
  gap: 32px;
}

/* The .section containing all the numbered paragraphs */
.privacy-policy .section {
  display: flex;
  flex-direction: column;
  gap: 16px; /* Gap between individual paragraphs (desktop) */
  width: 100%;
  max-width: 960px; /* Constrain max-width for readability */
  padding: 0 32px; /* Desktop inner horizontal padding */
  box-sizing: border-box;
  align-items: flex-start;
  height: auto; /* Ensure height is auto, removed specific section-1/2/3 heights */
}

/* Consistent paragraph styling (adapting from .paragraph-2 in terms.css) */
.privacy-policy .paragraph-1,
.privacy-policy .paragraph {
  color: var(--gray600);
  font-weight: 400;
  line-height: 28px;
  font-size: 18px; /* text-lgregular equivalent */
  margin: 0;
  padding: 0;
  text-align: left;
  width: 100%;
}

/* Specific styling for the very first paragraph in rich-text, if distinct */
.privacy-policy .paragraph-1.text-lgregular {
  margin-top: 0;
  max-width: 960px; /* Align with main content max-width */
  padding: 0 32px; /* Add horizontal padding for desktop */
}

/* Styling for lists within the terms (e.g., (a), (b), (c) points) */
.privacy-policy .section ul {
  list-style: none;
  padding-left: 0;
  margin: 0;
  width: 100%;
}

.privacy-policy .section ul li {
  margin-bottom: 8px;
  text-align: left;
}

.privacy-policy .section ul li:last-child {
  margin-bottom: 0;
}


/* --- FOOTER STYLES (footer within the content) --- */
.privacy-policy .footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1440px;
  margin: 0 auto;
  box-sizing: border-box;
  background-color: var(--white);
  padding: 64px 0px 48px;
  gap: 64px;
}

.privacy-policy .container-1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1280px;
  padding: 0px 32px;
  gap: 48px;
  box-sizing: border-box;
}

.privacy-policy .content-1 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  gap: 32px;
}

.privacy-policy .layer_1 { /* Assuming this is the footer logo */
  height: auto;
  width: 144px;
}

.privacy-policy .footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start;
  width: 100%;
}

.privacy-policy .footer-link {
  /* No specific styles needed here, its children button will be flex items */
}

.privacy-policy .button-2 {
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}

.privacy-policy .button-base {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0;
}

.privacy-policy .text { /* Footer link text */
  color: var(--gray600);
  font-weight: 600;
  line-height: 24px;
  margin-top: -1.00px;
  position: relative;
  white-space: nowrap;
  width: fit-content;
}

.privacy-policy .container-2 {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: 1280px;
  padding: 0px 32px;
  gap: 32px;
  box-sizing: border-box;
}

.privacy-policy .divider {
  width: 100%;
  height: 1px;
  background-color: var(--gray100);
}

.privacy-policy .content-2 {
  display: flex;
  justify-content: space-between;
  width: 100%;
  align-items: center;
}


/* --- Mobile Responsiveness Overrides (max-width: 991.98px for 'lg' breakpoint) --- */
@media (max-width: 991.98px) {

  /* General mobile adjustments for main sections */
  .privacy-policy .header-section,
  .privacy-policy .rich-text,
  .privacy-policy .footer {
      padding: 48px 16px; /* Reduced vertical and added horizontal padding for mobile */
      gap: 32px; /* Reduced gap for mobile */
      align-items: flex-start; /* Ensure content aligns to the left on mobile */
  }

  /* Ensure all main content containers are full width and left-aligned */
  .privacy-policy .container,
  .privacy-policy .content,
  .privacy-policy .heading-and-supporting-text,
  .privacy-policy .heading-and-subheading {
    align-items: flex-start; /* Force left alignment for all header content blocks */
    max-width: 100%;
    width: 100%;
  }

  .privacy-policy .container,
  .privacy-policy .content {
      padding: 0 16px; /* Reduced inner horizontal padding for mobile */
  }

  .privacy-policy .heading-1 {
    font-size: 36px;
    line-height: 44px;
    text-align: left;
  }

  /* CRITICAL FIX: Make supporting-text smaller and left-aligned on mobile */
  .privacy-policy .supporting-text {
    font-size: 16px !important; /* Force smaller size */
    line-height: 24px !important; /* Force appropriate line height */
    text-align: left; /* Force text to align left on mobile */
    width: 100%; /* Ensure it takes full width with padding */
    max-width: unset; /* Remove desktop max-width constraint */
  }

  /* Rich Text / Content Section Mobile */
  .privacy-policy .rich-text {
      padding: 0 16px 48px 16px; /* Adjusted padding for content area on mobile */
      gap: 24px;
  }

  .privacy-policy .section {
      padding: 0; /* Remove inner padding as parent handles it on mobile */
      gap: 8px; /* Adjusted: Smaller gap between individual paragraphs on mobile */
      width: 100%;
      align-items: flex-start; /* Ensure section content is left aligned */
  }

  /* CRITICAL: Styles for the main terms paragraphs on mobile */
  .privacy-policy .paragraph-1,
  .privacy-policy .paragraph {
    font-size: 16px; /* Smaller font size for mobile */
    line-height: 24px; /* Adjusted line height for mobile */
    text-align: left; /* Ensure all paragraphs are left aligned */
    margin-bottom: 8px; /* Adjusted: Small bottom margin for spacing between paragraphs */
  }

  /* Ensure bold text within paragraphs remains prominent */
  .privacy-policy .paragraph strong {
      font-size: 16px; /* Explicitly set to match paragraph size if needed */
      line-height: 24px;
  }

  /* Adjust spacing and behavior for ul/li within the terms */
  .privacy-policy .section ul {
    margin-left: 15px; /* Indent the list for mobile */
    padding-left: 0;
    width: calc(100% - 15px); /* Adjust width to account for indent */
  }

  .privacy-policy .section ul li {
    margin-bottom: 6px; /* Smaller space between list items */
  }
  .privacy-policy .section ul li:last-child {
      margin-bottom: 0;
  }


  /* Footer Mobile */
  .privacy-policy .container-1 {
      padding: 0 16px;
  }

  .privacy-policy .footer-links {
      flex-direction: column;
      gap: 12px;
      align-items: flex-start;
  }

  .privacy-policy .container-2 {
      padding: 0 16px;
  }

  .privacy-policy .content-2 {
      flex-direction: column;
      gap: 8px;
      align-items: flex-start;
  }

  .privacy-policy .footer-text.inputmd {
      white-space: normal;
      text-align: left;
  }
}

/* Variables - assumed to be imported from styleguide.css or defined globally */
/* Added for self-containment consistent with terms.css */
:root {
  --white: #ffffff;
  --gray100: #f2f4f7;
  --gray300: #d0d5dd;
  --gray600: #475467;
  --gray900: #101828;
  --blue-chill: #0199a6;
  --blue-chill-2: #0199a6;
}