@import url('https://fonts.googleapis.com/css2?family=Crimson+Text:wght@400;600;700&display=swap');

:root {
  --light-brown: #f7f3ea;
  --paper: #fefcf6;
  --paper-dark: #f3ecdd;
  --medium-brown: #e5dcc4;
  --dark-brown: #6e5634;
  --accent-brown: #a68a5f;
  --text: #2b2317;
  --text-soft: #5c5442;
  --white: #ffffff;
  --shadow: 0 6px 18px rgba(0,0,0,0.08);
  --shadow-hover: 0 10px 26px rgba(0,0,0,0.15);
  --radius: 18px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Google Sans', serif;
  font-size: 1.2rem;
  line-height: 1.9;
  color: var(--text);
  background: var(--light-brown);
  text-align: justify;
  margin: 0;
  padding: 0;
}

.legal-wrapper {
  max-width: 920px;
  margin: auto;
  padding: 40px 25px;
}

/* HEADER */
.header-bar {
  margin-bottom: 30px;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent-brown);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  margin-bottom: 20px;
  transition: 0.2s ease;
}

.back-btn:hover {
  color: var(--dark-brown);
  transform: translateX(-4px);
}

.page-header {
  text-align: center;
  margin-bottom: 55px;
}

.legal-logo {
  height: 250px;
  margin-bottom: 16px;
  opacity: .95;
}

.page-header h1 {
  font-size: clamp(2.8rem, 4vw, 3.5rem);
  color: var(--dark-brown);
  margin-bottom: 10px;
  letter-spacing: .5px;
}

.header-divider {
  width: 140px;
  height: 3px;
  background: var(--accent-brown);
  margin: 14px auto 0;
  border-radius: 3px;
}

/* TABLE OF CONTENTS */
.toc {
  background: var(--paper);
  border: 1px solid var(--medium-brown);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px 36px;
  margin-bottom: 50px;
}

.toc h3 {
  margin-bottom: 14px;
  font-size: 2rem;
  color: var(--dark-brown);
}

.toc-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.toc a {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.6rem;
  font-weight: 600;
  padding: 14px 18px;
  border-radius: 14px;
  background: var(--light-brown);
  transition: all 0.25s ease;
  text-decoration: none;
  color: var(--accent-brown);
}

.toc a:hover {
  background: var(--paper);
  color: var(--dark-brown);
  transform: translateX(6px);
}

/* HEADINGS */
h2 {
  font-size: 2.5rem;
  margin-bottom: 18px;
  color: var(--dark-brown);
}

.section-box h2 {
  padding-bottom: 10px;
  border-bottom: 1px solid var(--medium-brown);
  margin-bottom: 22px;
}

h3 {
  font-size: 1.8rem;
  margin-top: 24px;
  margin-bottom: 14px;
  color: var(--accent-brown);
}

.section-updated {
  font-size: 1.1rem;
  color: var(--text-soft);
  margin-bottom: 22px;
  font-style: italic;
}

/* SECTION BOX */
.section-box {
  background: var(--paper-dark);
  padding: 40px 45px;
  margin-bottom: 60px;
  border-radius: var(--radius);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.04),
    var(--shadow);
  border: 1px solid var(--medium-brown);
  transition: all .25s ease;
  opacity: 0;
  transform: translateY(12px);
  animation: fadeIn 0.7s ease forwards;
}

.section-box:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-4px);
}

@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* PARAGRAPHS */
p {
  max-width: 750px;
  font-size: 1.3rem;
  margin-bottom: 18px;
}

.section-box p + p {
  margin-top: 10px;
}

/* LIST CARDS */
.list-cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 20px 0;
}

.list-card {
  background: var(--light-brown);
  border-left: 5px solid var(--accent-brown);
  padding: 14px 18px;
  border-radius: 12px;
  font-size: 1.25rem;
  line-height: 1.7;
  box-shadow: 0 3px 10px rgba(0,0,0,0.06);
  transition: 0.25s ease;
}

.list-card:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-hover);
}

/* LINKS */
a {
  color: var(--accent-brown);
  text-decoration: none;
  font-weight: 600;
}

a:hover {
  color: var(--dark-brown);
  text-decoration: underline;
}

/* LANGUAGE TOGGLE */
.language-toggle {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
  z-index: 999;
}

.lang-actions {
  display: flex;
  gap: 10px;
  background: white;
  padding: 8px;
  border-radius: 30px;
  box-shadow: var(--shadow);
}

.lang-btn,
.signup-btn {
  padding: 14px 22px;
  border-radius: 30px;
  font-size: 1.3rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--medium-brown);
  background: white;
  box-shadow: var(--shadow);
  transition: .25s;
}

.signup-btn {
  background: var(--dark-brown);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.lang-btn:hover,
.signup-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}

.signup-btn:hover {
  background: var(--accent-brown);
}

/* FOOTER */
footer {
  background-color: var(--dark-brown);
  color: var(--white);
  padding: clamp(3rem, 6vh, 4rem) 0 clamp(2rem, 4vh, 3rem);
  opacity: 0;
  animation: fadeIn 1s ease 0.3s forwards;
  margin-top: 60px;
}

.container {
  max-width: 1100px;
  margin: auto;
  padding: 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: clamp(2rem, 4vw, 8rem);
  margin-bottom: clamp(1.5rem, 3vh, 2rem);
}

.footer-section {
  flex: 1;
  min-width: min(250px, 100%);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards;
}

.footer-section:nth-child(1) { animation-delay: 0.4s; }
.footer-section:nth-child(2) { animation-delay: 0.5s; }
.footer-section:nth-child(3) { animation-delay: 0.6s; }

.footer-section h3 {
  font-size: clamp(1.2rem, 1.8vw, 1.5rem);
  margin-bottom: clamp(1rem, 2vh, 1.5rem);
  color: var(--paper);
  position: relative;
  padding-bottom: 0.8rem;
}

.footer-section h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: clamp(30px, 5vw, 50px);
  height: 3px;
  background-color: var(--accent-brown);
  border-radius: 2px;
}

.footer-section p,
.footer-section li {
  font-size: clamp(1rem, 1.3vw, 1.2rem);
  line-height: 1.8;
  margin-bottom: clamp(0.8rem, 1.5vh, 1rem);
  color: rgba(255,255,255,0.85);
}

.footer-section ul {
  list-style: none;
  padding: 0;
}

.footer-section li {
  margin-bottom: 0.8rem;
  transform: translateX(0);
  transition: 0.25s ease;
}

.footer-section li:hover {
  transform: translateX(10px);
}

.footer-section li:hover a {
  color: var(--paper);
}

#footerLegalLink {
  text-decoration: none;
  color: inherit;
}

#footerLegalLink:hover {
  text-decoration: underline;
}

.social-icons {
  display: flex;
  gap: 14px;
  margin-top: 10px;
}

.social-icons a {
  color: var(--white);
  font-size: 1.4rem;
  transition: 0.25s ease;
}

.social-icons a:hover {
  color: var(--accent-brown);
}

.footer-bottom {
  text-align: center;
  padding-top: clamp(1.5rem, 3vh, 2rem);
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: clamp(0.9rem, 1.2vw, 1.1rem);
  color: rgba(255,255,255,0.7);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.8s forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hidden {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

/* MOBILE */
@media (max-width: 700px) {
  body { font-size: 1.1rem; }
  h1 { font-size: 2.5rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.5rem; }
  p { font-size: 1.15rem; }
  .section-box { padding: 28px; }
  .toc a { font-size: 1.4rem; padding: 12px 16px; }
  .language-toggle { top: 10px; right: 10px; }
  .lang-btn, .signup-btn { padding: 10px 16px; font-size: 1.1rem; }
}
500; }
500; }
