body.template-secondary {
  padding-top: 60px;
  line-height: 1.8;
}

body.template-secondary main a {
  color: var(--color-accent);
}

body.template-secondary main a:hover {
  text-decoration: underline;
}

body.template-secondary main a.btn-download {
  color: #fff;
  text-decoration: none;
}

body.template-secondary main a.btn-download:hover {
  color: #fff;
  text-decoration: none;
}

body.template-secondary main {
  max-width: 760px;
  margin: 80px auto 120px;
  padding: 0 24px;
}

body.template-secondary main.wide {
  max-width: 900px;
}

.page-label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

body.template-secondary h1 {
  font-family: var(--font-headline);
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.06em;
  line-height: 1;
  margin-bottom: 12px;
}

.subtitle,
.updated {
  font-size: 0.78rem;
  color: var(--color-muted);
  margin-bottom: 52px;
  letter-spacing: 0.06em;
}

body.template-secondary main p {
  color: rgba(245, 245, 245, 0.65);
  margin-bottom: 16px;
  line-height: 1.8;
}

body.template-secondary main h2 {
  font-family: var(--font-headline);
  font-size: 1.2rem;
  letter-spacing: 0.06em;
  margin-top: 48px;
  margin-bottom: 20px;
  color: var(--color-white);
}

body.template-secondary main h3 {
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--color-white);
}

body.template-secondary main ul {
  margin-bottom: 16px;
  padding-left: 20px;
  color: rgba(245, 245, 245, 0.65);
}

body.template-secondary main li {
  margin-bottom: 8px;
}

body.template-secondary main hr {
  border: none;
  border-top: 1px solid rgba(245, 245, 245, 0.1);
  margin: 48px 0;
}

.form-group {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
  margin-bottom: 8px;
}

input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--color-surface);
  border: 1px solid rgba(245, 245, 245, 0.12);
  border-radius: 3px;
  padding: 12px 16px;
  color: var(--color-white);
  font-family: var(--font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: rgba(245, 245, 245, 0.35);
}

select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23888890' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  padding-right: 40px;
  cursor: pointer;
}

select option {
  background: var(--color-surface);
}

textarea {
  resize: vertical;
  min-height: 140px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.submit-btn {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 1rem;
  letter-spacing: 0.1em;
  padding: 14px 44px;
  background: var(--color-teal);
  color: #fff;
  border-radius: 2px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 8px;
}

.submit-btn:hover {
  background: #0d7f7f;
}

.success-msg {
  display: none;
  background: rgba(14, 107, 107, 0.15);
  border: 1px solid rgba(14, 107, 107, 0.4);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: rgba(245, 245, 245, 0.8);
}

.success-msg.visible {
  display: block;
}

.error-msg {
  display: none;
  background: rgba(193, 18, 31, 0.12);
  border: 1px solid rgba(193, 18, 31, 0.4);
  border-radius: 4px;
  padding: 20px 24px;
  margin-bottom: 24px;
  color: rgba(245, 245, 245, 0.85);
}

.error-msg.visible {
  display: block;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.faq-category {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin: 48px 0 16px;
}

details {
  border-bottom: 1px solid rgba(245, 245, 245, 0.08);
}

details:first-of-type {
  border-top: 1px solid rgba(245, 245, 245, 0.08);
}

summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

summary::-webkit-details-marker {
  display: none;
}

summary h2 {
  margin: 0;
  flex: 1;
}

.summary-icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  position: relative;
  color: var(--color-muted);
}

.summary-icon::before,
.summary-icon::after {
  content: '';
  position: absolute;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s, opacity 0.2s;
}

.summary-icon::before {
  width: 12px;
  height: 1.5px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.summary-icon::after {
  width: 1.5px;
  height: 12px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

details[open] .summary-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
  opacity: 0;
}

details[open] summary {
  color: var(--color-white);
}

.faq-answer {
  padding: 0 0 20px;
  color: rgba(245, 245, 245, 0.65);
  line-height: 1.8;
}

.faq-answer p {
  margin-bottom: 12px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.rating-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.rating-badge-lg {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  background: var(--color-surface);
  border: 1px solid rgba(245, 245, 245, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  text-align: center;
  color: var(--color-muted);
  line-height: 1.3;
}

.rating-info {
  color: rgba(245, 245, 245, 0.65);
  font-size: 0.9rem;
  line-height: 1.7;
}

.rating-info strong {
  display: block;
  margin-bottom: 4px;
  color: var(--color-white);
}

.cookie-card {
  background: var(--color-surface);
  border-radius: 6px;
  padding: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cookie-card-info {
  flex: 1;
}

.cookie-card-info p {
  margin-bottom: 0;
  font-size: 0.88rem;
}

.cookie-card-info .note {
  margin-top: 8px;
  font-size: 0.8rem;
}

.cookie-toggle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.toggle-track {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
}

.toggle-track.on {
  background: var(--color-teal);
}

.toggle-track.off {
  background: rgba(245, 245, 245, 0.15);
}

.toggle-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  position: absolute;
  top: 3px;
  transition: left 0.2s;
}

.toggle-track.on .toggle-thumb {
  left: 23px;
}

.toggle-track.off .toggle-thumb {
  left: 3px;
}

.toggle-label {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.toggle-label.on {
  color: var(--color-teal);
}

.toggle-label.off {
  color: var(--color-muted);
}

.save-btn {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 0.1em;
  padding: 14px 40px;
  background: var(--color-teal);
  color: #fff;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  margin-top: 24px;
  transition: background 0.2s;
}

.save-btn:hover {
  background: #0d7f7f;
}

.fact-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 16px;
}

.fact-table td {
  padding: 10px 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.08);
  vertical-align: top;
  font-size: 0.9rem;
  color: rgba(245, 245, 245, 0.65);
}

.fact-table td:first-child {
  width: 140px;
  color: var(--color-muted);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-right: 24px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.download-card {
  background: var(--color-surface);
  border-radius: 4px;
  overflow: hidden;
}

.download-thumb {
  aspect-ratio: 16/9;
  background: rgba(245, 245, 245, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--color-muted);
}

.download-info {
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

.logo-card {
  aspect-ratio: 1;
  background: var(--color-surface);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.72rem;
  color: var(--color-muted);
  line-height: 1.4;
  padding: 12px;
}

.btn-download {
  display: inline-block;
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px 32px;
  background: var(--color-teal);
  color: #fff;
  border-radius: 2px;
  margin-bottom: 32px;
  text-decoration: none;
}

.btn-download:hover {
  background: #0d7f7f;
  text-decoration: none;
}

.press-contact {
  background: var(--color-surface);
  border-radius: 6px;
  padding: 28px 32px;
  margin-top: 8px;
}

.press-contact p {
  margin-bottom: 8px;
}

.press-contact .note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.text-white {
  color: var(--color-white);
}

.legal-tabs {
  margin-top: 8px;
}

.legal-tab-list {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(245, 245, 245, 0.1);
  margin-bottom: 36px;
}

.legal-tab {
  font-family: var(--font-headline);
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  padding: 12px 24px;
  background: none;
  border: none;
  color: var(--color-muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.legal-tab:hover {
  color: var(--color-white);
}

.legal-tab[aria-selected="true"] {
  color: var(--color-white);
  border-bottom-color: var(--color-accent);
}

.legal-tab-panel h3 {
  margin-top: 28px;
  margin-bottom: 12px;
}

.legal-tab-panel h4 {
  font-family: var(--font-headline);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  margin-top: 24px;
  margin-bottom: 10px;
  color: var(--color-white);
}

.legal-tab-panel h5 {
  font-family: var(--font-body);
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-top: 16px;
  margin-bottom: 8px;
  color: rgba(245, 245, 245, 0.85);
}

.legal-tab-panel ul {
  margin-bottom: 16px;
  padding-left: 20px;
  color: rgba(245, 245, 245, 0.65);
}

.legal-tab-panel li {
  margin-bottom: 8px;
}

.legal-tab-panel p strong {
  color: var(--color-white);
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }

  .download-grid {
    grid-template-columns: 1fr 1fr;
  }

  .logo-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cookie-card {
    flex-direction: column;
    align-items: flex-start;
  }
}
