/* Legal Pages Shared Styles (Terms & Privacy) */

:root {
  color-scheme: light dark;
  --bg-primary: #fafafa;
  --text-primary: #323232;
  --text-secondary: #7e7e7e;
  --date: #646464;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-primary: #0d0d0d;
    --text-primary: #fff;
    --text-secondary: #7e7e7e;
    --date: #999999;
  }
}

/* Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial,
    sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

#main {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 100vh;
  padding: 0 24px;
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 88px 0 48px;
}

h1,
h2,
h3 {
  color: var(--text);
}

h1 {
  font-size: 2.2em;
  margin-bottom: 20px;
}

h2 {
  font-size: 1.5em;
  margin-top: 30px;
  margin-bottom: 15px;
}

h3 {
  font-size: 1.3em;
  margin-top: 20px;
  margin-bottom: 10px;
}

p,
li {
  font-size: 1em;
}

p {
  margin: 16px 0;
}

li {
  margin: 8px 0;
}

ul {
  padding-left: 20px;
}

a {
  color: LinkText;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.last-updated {
  font-style: italic;
  color: var(--date);
}

/* Footer */
.footer {
  width: 100%;
  padding: 40px 0 32px;
  margin-top: auto;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.copyright {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  margin: 8px 0 0;
}

.footer-separator {
  font-size: 15px;
  color: var(--text-secondary);
}

.footer-link {
  font-size: 15px;
  font-weight: 400;
  line-height: 24px;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-secondary);
}

.footer-email {
  color: color-mix(in srgb, var(--text-primary) 70%, var(--text-secondary) 30%);
}

.footer-email:hover {
  color: var(--text-primary);
}

@media (max-width: 809px) {
  #main {
    padding: 0 16px;
  }

  .container {
    padding: 48px 0 16px;
  }

  h1 {
    font-size: 1.8em;
  }

  h2 {
    font-size: 1.3em;
  }

  h3 {
    font-size: 1.1em;
  }
}

@media (max-width: 375px) {
  h1 {
    font-size: 1.5em;
  }

  h2 {
    font-size: 1.2em;
  }

  h3 {
    font-size: 1em;
  }

  .footer {
    padding: 32px 0;
  }

  .footer-content {
    align-items: flex-start;
    gap: 24px;
    padding: 0 16px;
  }

  .footer-links {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-separator {
    display: none;
  }

  .copyright {
    align-self: center;
    margin: 0;
  }
}
