/* PROTIERRA CATATUMBO - Terms and Conditions
   Design tokens based on mockup
*/
:root {
  --sidebar-bg: #1a3a5c;
  --sidebar-border: #fff;
  --brand-green: #00804C;
  --brand-orange: #F0854F;
  --section-title: #1d9542;
  --text-dark: #1a1a1a;
  --text-footer: #888;
  --white: #fff;
  --light-blue: #BFECFE;
  --font-sans: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text-dark);
  line-height: 1.6;
}

/* Layout */
.layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 15%;
  min-width: 80px;
  max-width: 120px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  flex-shrink: 0;
}

/* Main content area */
.main-content {
  flex: 1;
  min-width: 0;
  background: linear-gradient(to bottom, var(--white) 0%, var(--light-blue) 100%);
  padding: 2rem 3rem 0;
  width: 100%;
}

/* Header */
.header {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin-bottom: 2rem;
}

.brand {
  flex: 1;
  display: flex;
  justify-content: center;
}

.brand-logo {
  height: 50px;
  width: auto;
  max-width: 280px;
}

/* Page title */
.page-title {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.page-title-line {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.term-icon {
  width: 40px;
  height: 46px;
  flex-shrink: 0;
}

.page-title h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-dark);
}

.page-title-subtitle {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.page-title-date {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text-dark);
  opacity: 0.9;
}

/* Content sections */
.content {
  width: 100%;
}

.content-section {
  margin-bottom: 2.5rem;
}

.section-title {
  color: var(--section-title);
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.5rem 0;
}

.section-subtitle {
  color: var(--text-dark);
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.section-text {
  color: var(--text-dark);
  font-size: 0.95rem;
  text-align: justify;
  margin: 0 0 1rem 0;
}

.section-text:last-child {
  margin-bottom: 0;
}

/* Footer with landscape graphic - SVG viewBox 1920x780 */
.footer {
  position: relative;
  margin-top: 3rem;
  margin-left: -3rem;
  margin-right: -3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Partner logos - float over footer graphic */
.partners {
  position: absolute;
  top: 2rem;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2;
  pointer-events: none;
}

.partners-logos {
  width: 100%;
  max-width: 500px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.15));
}

.footer-graphic {
  position: relative;
  width: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
  /* Preserve SVG aspect ratio: 1920/780 */
  aspect-ratio: 1920 / 780;
}

.footer-graphic img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-text {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  text-align: center;
  color: var(--text-footer);
  font-size: 0.9rem;
  margin: 0;
  z-index: 1;
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    max-width: none;
    min-height: 8px;
    border-right: none;
    border-bottom: 1px solid var(--sidebar-border);
  }

  .main-content {
    padding: 1.5rem 1.5rem 0;
    max-width: 100%;
  }

  .header {
    flex-direction: column;
    align-items: center;
    gap: 1rem;
  }

  .page-title {
    flex-direction: column;
    align-items: flex-start;
  }

  .page-title h1 {
    font-size: 1.5rem;
  }

  .footer {
    margin-left: -1.5rem;
    margin-right: -1.5rem;
  }

  .partners {
    width: 70%;
    top: 1rem;
  }
}
