/*==================== VARIABLES ====================*/
:root {
  --primary: #f8f4f0;
  --accent: #d4af37;
  --accent-light: #e8d9b0;
  --text: #3a3a3a;
  --text-light: #7a7a7a;
  --white: #ffffff;
  --soft-beige: #f5f0e1;
  --soft-nude: #f7e9d7;
  --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);
  --radius: 16px;
  --gold-gradient: linear-gradient(135deg, #d4af37, #bf953f);
}

body {
  font-family: 'Poppins', sans-serif;
  background: var(--primary);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/*==================== TERMS HERO SECTION ====================*/
.terms-hero {
  background: linear-gradient(135deg, var(--soft-beige) 0%, var(--soft-nude) 100%);
  padding: 8rem 2rem 6rem;
  text-align: center;
  color: var(--text);
  margin-bottom: 4rem;
  position: relative;
  overflow: hidden;
  margin-top: 5rem;
}

.terms-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><circle cx="30" cy="30" r="2" fill="%23d4af37" opacity="0.1"/></svg>') repeat;
  background-size: 60px 60px;
  animation: float 20s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.terms-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: var(--text);
  position: relative;
  display: inline-block;
}

.terms-hero h1::after {
  content: '';
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 4px;
  background: var(--gold-gradient);
  border-radius: 2px;
}

.terms-hero p {
  font-size: 1.3rem;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
  font-weight: 400;
}

.hero-decoration {
  margin-top: 2rem;
  font-size: 3rem;
  color: var(--accent);
  opacity: 0.3;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.3; }
  50% { transform: scale(1.1); opacity: 0.5; }
}

/*==================== TERMS CONTENT ====================*/
.terms-container {
  max-width: 1200px;
  margin: 0 auto 5rem;
  padding: 0 2rem;
}

.terms-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2.5rem;
}

.terms-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
  height: 100%;
  border: 1px solid rgba(212, 175, 55, 0.1);
}

.terms-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}

.card-header {
  background: var(--gold-gradient);
  padding: 2rem 2rem 1.5rem;
  color: var(--white);
  position: relative;
}

.card-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--white);
  opacity: 0.3;
}

.card-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  width: 70px;
  height: 70px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
}

.card-header h2 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 600;
  margin: 0;
  color: var(--white);
}

.card-body {
  padding: 2rem;
}

.terms-card p {
  margin-bottom: 1.5rem;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.7;
}

.terms-card ul {
  padding-left: 0;
  margin-bottom: 1.5rem;
  list-style: none;
}

.terms-card li {
  margin-bottom: 1rem;
  position: relative;
  padding-left: 2rem;
  color: var(--text);
  line-height: 1.6;
}

.terms-card li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
  font-weight: bold;
  font-size: 1.1rem;
  background: var(--accent-light);
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}

.highlight {
  background: linear-gradient(135deg, var(--accent-light) 0%, rgba(232, 217, 176, 0.3) 100%);
  padding: 1.5rem;
  border-radius: var(--radius);
  border-left: 4px solid var(--accent);
  margin: 1.5rem 0;
  position: relative;
}

.highlight::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 20 20"><circle cx="10" cy="10" r="1" fill="%23d4af37" opacity="0.1"/></svg>') repeat;
  border-radius: var(--radius);
}

.highlight p {
  margin: 0;
  font-weight: 500;
  color: var(--text);
  position: relative;
  z-index: 1;
}

.highlight i {
  color: var(--accent);
  margin-right: 0.5rem;
}

.last-updated {
  background: var(--soft-beige);
  padding: 1rem 1.5rem;
  border-radius: var(--radius);
  margin-top: 1.5rem;
  text-align: center;
  border: 1px solid var(--accent-light);
}

.last-updated p {
  margin: 0;
  color: var(--text-light);
  font-size: 0.9rem;
  font-weight: 500;
}

.last-updated i {
  color: var(--accent);
  margin-right: 0.5rem;
}

/*==================== CONTACT SECTION ====================*/
.contact-section {
  background: linear-gradient(135deg, var(--soft-beige) 0%, var(--soft-nude) 100%);
  padding: 4rem 2rem;
  margin: 2rem 0 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="40" height="40" viewBox="0 0 40 40"><circle cx="20" cy="20" r="1" fill="%23d4af37" opacity="0.05"/></svg>') repeat;
}

.contact-container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.contact-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  margin-bottom: 1rem;
  color: var(--text);
}

.contact-section p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}

.contact-methods {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.contact-method {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1.5rem 2rem;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: var(--transition);
  min-width: 120px;
  border: 2px solid transparent;
}

.contact-method:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--accent);
  color: var(--accent);
}

.contact-method i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
  transition: var(--transition);
}

.contact-method span {
  font-weight: 500;
  font-size: 0.9rem;
}

.contact-method.whatsapp:hover {
  background: #25D366;
  color: var(--white);
}

.contact-method.email:hover {
  background: #EA4335;
  color: var(--white);
}

.contact-method.phone:hover {
  background: var(--accent);
  color: var(--white);
}

/*==================== RESPONSIVE ====================*/
@media (max-width: 1200px) {
  .terms-content {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
  }
}

@media (max-width: 992px) {
  .terms-hero h1 {
    font-size: 3rem;
  }
  .terms-content {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
  }
  .contact-methods {
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .terms-hero {
    padding: 6rem 1.5rem 4rem;
  }
  .terms-hero h1 {
    font-size: 2.5rem;
  }
  .terms-hero p {
    font-size: 1.1rem;
  }
  .terms-container {
    padding: 0 1.5rem;
  }
  .card-header {
    padding: 1.5rem 1.5rem 1rem;
  }
  .card-body {
    padding: 1.5rem;
  }
  .card-header h2 {
    font-size: 1.6rem;
  }
  .contact-section {
    padding: 3rem 1.5rem;
  }
  .contact-section h2 {
    font-size: 2rem;
  }
  .contact-methods {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }
  .contact-method {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .terms-hero {
    padding: 5rem 1rem 3rem;
  }
  .terms-hero h1 {
    font-size: 2rem;
  }
  .terms-hero p {
    font-size: 1rem;
  }
  .terms-content {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .card-header h2 {
    font-size: 1.4rem;
  }
  .contact-section h2 {
    font-size: 1.8rem;
  }
  .contact-section p {
    font-size: 1rem;
  }
}
