* {
  list-style: none;
  text-decoration: none;
  box-sizing: border-box;
}

.header-container {
  list-style: none;
  text-decoration: none;
  position: fixed;
  display: grid;
  grid-template-columns: 12.5vw 12.5vw 50vw 12.5vw 12.5vw;
  grid-template-rows: 50% 50%;
  top: 0;
  left: 0;
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 100vw;
  max-width: 100vw;
  min-height: 70px;
  max-height: 70px;
  z-index: 10;
  background-color: rgb(16, 39, 159);
}
.background-full-image {
  position: fixed;
  top: 70px;
  left: 0;
  width: 100%;
  height: calc(100vh - 70px - 10vh);
  max-height: 100vh;
  z-index: -10;
  pointer-events: none;
  margin: 0;
  padding: 0;
  display: block;
}
.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -10;
  pointer-events: none;
}
.top-left {
  display: none;
}
.top-left li a {
  color: white;
}
.top-right {
  display: none;
}
.top-right li a {
  color: white;
}
.header-search-container {
  display: none;
}
.header-search-container input {
  place-self: center;
  border-radius: 50px;
  min-width: 75%;
  max-height: 10vh;
  margin: 0;
  padding: 0;
  height: 2rem;
}
.header-search-container text {
  place-content: center;
}
.header-search-container button {
  position: absolute;
  right: 25px;
  background-color: white;
  color: black;
  border-radius: 50px;
  height: 100%;
  aspect-ratio: 1;
}
.search-input {
  flex: 1;
}
.title_image {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  place-self: center;
  place-self: center;
  min-width: 100%;
  max-height: 100%;
}
.title_image img {
  place-self: center;
  place-content: center;
  max-height: 10vh;
  width: 80%;
}
.site-title {
  margin: 0;
  padding: 0;
  font-family: 'Times New Roman';
  font-size: clamp(1.5rem, 5vw, 3rem);
  font-weight: normal;
  background: linear-gradient(
    to bottom,
    #f0f0f0 0%,
    #d9d8d8 50%,
    #ebeaea 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(2px 2px 2px rgba(0, 0, 0, 1));
  display: inline-block;
}

.nav-container {
  grid-column: 1 / 3;
  place-self: center;
  place-content: center;
  max-width: 100%;
  max-height: 100%;
}
.menu-memnber {
  position: relative;
  display: flex;
  place-self: center;
  place-content: center;
}
.header-menu {
  max-width: 100%;
}
.header-menu ul {
  display: flex;
  max-width: 100%;
  margin: 0;
  padding: 0;
}
.off-screen-menu {
  grid-column: 3 / 4;
  grid-row: 1 / 3;
  place-items: center;
  place-self: center;
  min-width: 100%;
  max-height: 100px;

  position: fixed;
  top: 0;
  right: -1450px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  transition: 0.3s ease;
  z-index: -10;
}
.off-screen-menu.active {
  min-height: 100vh;
  background-color: rgb(34, 37, 49);
  right: 0;
}
.off-screen-menu.active ul {
  place-self: center;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr 1fr 1fr 1fr 1fr 1fr 1fr 1fr;
  z-index: 20 !important;
  font-size: 2rem;
  padding-bottom: 10vh;
  padding-top: 10vh;
}
.off-screen-menu ul li {
  /*  nav-links li = space between list items    */
  font-size: 1.25rem;
  display: inline-flex;
  margin: 10px;
  flex-direction: row;
  list-style-type: none;
}

.off-screen-menu.active ul li a {
  text-decoration: none;

  transition: color 0.3s;
  width: 100%;
  color: rgb(255, 0, 255);
}
.off-screen-menu ul li a:hover {
  color: rgb(4, 0, 255);
}

nav {
  margin-left: 0;

  grid-row: 1 / 3;
  grid-column: 5;
  place-items: center;
  place-self: center;
}
/* ham menu */
.ham-menu {
  height: 50px;
  width: 40px;
  position: relative;
  display: grid;
  place-items: center;
  place-self: center;
}

.ham-menu span {
  height: 5px;
  width: 100%;
  background-color: rgb(34, 37, 49);
  border-radius: 25px;
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: 0.3s ease;
}
.ham-menu span:nth-child(1) {
  top: 25%;
}
.ham-menu span:nth-child(3) {
  top: 75%;
}
.ham-menu.active span {
  background-color: white;
}
.ham-menu.active span:nth-child(1) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(45deg);
}
.ham-menu.active span:nth-child(2) {
  opacity: 0;
}
.ham-menu.active span:nth-child(3) {
  top: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
}
.burger1a {
  grid-row: 2;
  place-self: center;
}
.burger1b {
  grid-row: 2;
  place-self: center;
}
.burger2a {
  grid-row: 3;
  place-self: center;
}
.burger2b {
  grid-row: 3;
  place-self: center;
}
.burger3 {
  grid-row: 4;
  place-self: center;
}
.burger4 {
  grid-row: 5;
  place-self: center;
}
.burger5 {
  grid-row: 6;
  place-self: center;
}
.burger6 {
  grid-row: 7;
  place-self: center;
}
.glow-frame {
  /* Changed from grid to block, aligned text left for better readability */
  display: block;
  text-align: left;
  border-radius: 8px;

  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0 auto;

  box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.3);
  border-radius: 8px;
}

body {
  font-family: 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  margin: 0;
  background-color: white;
  /* Added padding to clear the fixed header (70px) and fixed footer (10vh) */
  padding-top: 80px;
  padding-bottom: 11vh;
}

/* Updated main container to allow for scrolling content */
.tos-page-container {
  /* Removed absolute positioning and fixed height (100vh) */
  position: relative;
  display: block; /* Ensures normal block flow, removing grid properties that caused conflict */

  justify-self: center;
  max-width: 100vw;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);

  /* Set max-width and margin for proper centering and fit */
  width: 100%;
  max-width: 900px;
  margin: 4vh auto 4vh auto;
  padding: 0 16px;
  box-sizing: border-box;
}

h1 {
  font-size: clamp(1.5rem, 5vw, 3rem);
  text-align: center;
  color: #2980b9;
  margin-bottom: 0.8em;
}
h2,
h3 {
  color: #2c3e50;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

h2 {
  font-size: clamp(1.25rem, 5vw, 2rem);
}

h3 {
  font-size: 1em;
  color: #34495e;
}

p {
  margin-bottom: 1em;
}

/* --- LIST FIXES START HERE --- */

ul {
  /* REMOVES BROWSER DEFAULT LEFT PADDING/MARGIN, THEN ADDS A SMALL MARGIN FOR BULLET SPACE */
  list-style-type: disc;
  margin-left: 0; 
  padding-left: 1.5rem; /* Replaced the old 25px margin with padding for better control */
  margin-bottom: 1em;
}

/* FIX: This targets the inner nested list (the one causing the extra indent) */
ul ul {
  /* Remove ALL left margin and padding to make the nested text align flush with the outer list's text */
  margin-left: 0;
  padding-left: 0;
  /* You may want to change the list style for nested lists if needed, e.g., list-style-type: circle; */
}

ul li {
  margin: 0 0 1rem 0;
}

/* --- LIST FIXES END HERE --- */

strong {
  font-weight: bold;
}

.last-updated {
  text-align: right;
  font-size: 0.9em;
  color: #7f8c8d;
  margin-top: 2em;
}

hr {
  border: 0;
  height: 1px;
  background-color: #ddd;
  margin: 2.5em 0;
}

/* Styling for the horizontal rule generated by the model */
.model-hr {
  border: none;
  border-top: 1px solid #eee;
  margin: 2em 0;
}

.footer {
  position: fixed;
  bottom: 0; /* Ensures it stays fixed at the bottom */
  left: 0;
  place-content: center;
  max-height: 10vh;
  min-height: 10vh;
  width: 100vw;
  max-width: 100vw;
  text-align: center;
  color: #fff;
  background-color: rgb(16, 39, 159);
  z-index: 1000;
}
#footer {
  bottom: 0;
  width: 100%;
}
.footer a {
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  color: #fff;
  background-color: rgb(16, 39, 159);
}
.footer-container {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 10vh;
}
.footer-left {
  padding: 0.25rem;
  place-self: center;
  grid-column: 1;
  max-width: 100%;
}
.footer-center {
  display: grid;
  grid-auto-flow: row;
  padding: 0.25rem;
  grid-column: 2;
  place-self: center;
  gap: 0.25rem;
}
.footer-right {
  padding: 0.25rem;
  place-self: center;
  grid-column: 3;
}

@keyframes glow {
  from {
    box-shadow: 0 0 5px rgb(30, 0, 255), 0 0 10px rgb(30, 0, 255),
      0 0 10px rgb(255, 0, 255);
  }
  to {
    box-shadow: 0 0 5px rgb(255, 0, 255), 0 0 10px rgb(255, 0, 255),
      0 0 10px rgb(255, 0, 255);
  }
}

.container3 {
  grid-row: 3;
  justify-self: center;
  width: 100%;
}
.container,
.container2 {
  /* Removed grid-row: 2; because .tos-page-container is now display: block; */
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 24px;
  box-sizing: border-box;
}

/* Extra tightening on small screens */
@media (max-width: 768px) {
  .tos-page-container {
    max-width: 100%;
    margin: 4vh auto 4vh auto; /* Adjusted to fit better on mobile */
    padding: 0 12px;
  }
  .container2 {
    padding: 20px;
  }
}